[entropy.tools] fix is_valid_path_string regexp

This commit is contained in:
Fabio Erculiani
2010-07-28 07:24:30 +02:00
parent 546e634b46
commit aee668be7b
+1 -1
View File
@@ -2563,7 +2563,7 @@ def is_valid_string(string):
if invalid: return False
return True
valid_path_regexp = re.compile("^([A-Za-z0-9/\.:-_]+)$")
valid_path_regexp = re.compile("^([A-Za-z0-9/\.:\-_]+)$")
def is_valid_path_string(path):
"""
Return whether given path is a valid path string (whitelisting valid