File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ def tuple(self):
177
177
r'|'
178
178
# If there is no debian_revision then hyphens are not allowed.
179
179
# we are adding the extra check that it must end with alphanum
180
- r'[A-Za-z0-9\.\+\~]*[A-Za-z0-9]-[A-Za-z0-9\+\.\~]*[A-Za-z0-9]'
180
+ r'[A-Za-z0-9\.\+\~]*[A-Za-z0-9]-[A-Za-z0-9\+\.\~]*[A-Za-z0-9\~ ]'
181
181
r')?'
182
182
r'$' ).match
183
183
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ def test_Version_from_string_tuples(self):
54
54
assert (0 , '0.0' , '0' ) == Version .from_string ('0:0.0-0' ).tuple ()
55
55
assert (0 , '0.0' , '00' ) == Version .from_string ('0:0.0-00' ).tuple ()
56
56
57
+ def test_Version_from_string_tilde (self ):
58
+ assert '0~' == Version .from_string ('0.0.0+dfsg-0~' ).revision
59
+
57
60
def test_get_non_digit_prefix (self ):
58
61
assert '' == get_non_digit_prefix ('' )
59
62
assert '' == get_non_digit_prefix ('0' )
You can’t perform that action at this time.
0 commit comments