Fix regex

This commit is contained in:
Christoph Haas 2020-06-08 11:29:25 +02:00
parent f19925427c
commit bbbccf2cb3

View File

@ -622,7 +622,7 @@ def print_error(message):
def name_clean(name): def name_clean(name):
newName = name.replace(" ", "_") newName = name.replace(" ", "_")
newName = re.sub(r"[^a-zA-Z0-9_-\.]", "-", newName) newName = re.sub(r"[^a-zA-Z0-9_\.-]", "-", newName)
if (newName.lower() == "plugins"): if (newName.lower() == "plugins"):
return newName + "-user" return newName + "-user"