X-Git-Url: https://git.donarmstrong.com/?p=dak.git;a=blobdiff_plain;f=daklib%2Fregexes.py;h=dd1c3dd8475da393e8188dd0490e368ae57bb4d2;hp=06cb173604689b3d1b42d2ac7180f80b56c49ffa;hb=e86a480016961c957ca425bf5219600089a92632;hpb=01b9a74483f93f1d87a3a44ab748a9ea3b4e7dbf diff --git a/daklib/regexes.py b/daklib/regexes.py index 06cb1736..dd1c3dd8 100644 --- a/daklib/regexes.py +++ b/daklib/regexes.py @@ -133,10 +133,10 @@ re_includeinpdiff = re.compile(r"(Translation-[a-zA-Z_]+\.(?:bz2|xz))") ###################################################################### # Match safe filenames -re_file_safe = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9_.:~+-]*$') +re_file_safe = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9_.~+-]*$') # Prefix of binary and source filenames -_re_file_prefix = r'^(?P[a-z0-9][a-z0-9.+-]+)_(?P[A-Za-z0-9.:~+-]+?)' +_re_file_prefix = r'^(?P[a-z0-9][a-z0-9.+-]+)_(?P[A-Za-z0-9.~+-]+?)' # Match binary packages # Groups: package, version, architecture, type