mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 14:45:55 +08:00
Allow non-ASCII characters for DL project names.
CURA-8395
This commit is contained in:
parent
c2f2304512
commit
f9557295fa
@ -366,7 +366,7 @@ class DigitalFactoryApiClient:
|
|||||||
:param on_error: The function to be called if anything goes wrong.
|
: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))
|
Logger.log("i", "Attempt to create new DF project '{}'.".format(display_name))
|
||||||
|
|
||||||
url = "{}/projects".format(self.CURA_API_ROOT)
|
url = "{}/projects".format(self.CURA_API_ROOT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user