Add missing regex chars

This commit is contained in:
rtm516 2020-05-29 00:15:35 +01:00 committed by GitHub
parent 933627610a
commit 5b0435c8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -617,7 +617,7 @@ def print_error(message):
def name_clean(name):
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"):
return newName + "-user"