~ occurs in version strings too.

This commit is contained in:
Benjamin Drung 2010-04-14 11:49:56 +02:00
parent 2a08a1f02b
commit 2920e58d75
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)