Browse Source

Fix regex

master
Christoph Haas 1 year ago
parent
commit
bbbccf2cb3
  1. 2
      migrate.py

2
migrate.py

@ -622,7 +622,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"