mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
~ occurs in version strings too.
This commit is contained in:
parent
2a08a1f02b
commit
2920e58d75
2
ack-sync
2
ack-sync
@ -32,7 +32,7 @@ COMMAND_LINE_SYNTAX_ERROR = 1
|
||||
VERSION_DETECTION_FAILED = 2
|
||||
|
||||
def get_version(title):
|
||||
m = re.search("[() ][0-9][0-9a-zA-Z.:+-]*", title)
|
||||
m = re.search("[() ][0-9][0-9a-zA-Z.:+-~]*", title)
|
||||
if m is None:
|
||||
print >> sys.stderr, "Version could not be detected. Please specify it with -V."
|
||||
sys.exit(VERSION_DETECTION_FAILED)
|
||||
|
2
fakesync
2
fakesync
@ -30,7 +30,7 @@ COMMAND_LINE_SYNTAX_ERROR = 1
|
||||
VERSION_DETECTION_FAILED = 2
|
||||
|
||||
def get_version(title):
|
||||
m = re.search("[() ][0-9][0-9a-zA-Z.:+-]*", title)
|
||||
m = re.search("[() ][0-9][0-9a-zA-Z.:+-~]*", title)
|
||||
if m is None:
|
||||
print >> sys.stderr, "Version could not be detected. Please specify it with -V."
|
||||
sys.exit(VERSION_DETECTION_FAILED)
|
||||
|
Loading…
x
Reference in New Issue
Block a user