Browse Source

Allow non-ASCII characters for DL project names.

CURA-8395
Remco Burema 3 years ago
parent
commit
f9557295fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/DigitalLibrary/src/DigitalFactoryApiClient.py

+ 1 - 1
plugins/DigitalLibrary/src/DigitalFactoryApiClient.py

@@ -366,7 +366,7 @@ class DigitalFactoryApiClient:
         :param on_error: The function to be called if anything goes wrong.
         """
 
-        display_name = re.sub(r"[^a-zA-Z0-9- ./™®ö+']", " ", project_name)
+        display_name = re.sub(r"^[\\w\\-\\. ()]+\\.[a-zA-Z0-9]+$", " ", project_name)
         Logger.log("i", "Attempt to create new DF project '{}'.".format(display_name))
 
         url = "{}/projects".format(self.CURA_API_ROOT)