Skip to content
Snippets Groups Projects
Commit 8dd2ffc8 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[common][model] Ensure sanitizer works on unicode string too

parent e65ceacb
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
......@@ -389,7 +389,7 @@ class Versionable(Shareable):
@staticmethod
def sanitize_name(name):
"""Makes sure that the name is valid"""
return re.sub(r'[\W]', '-', name)
return re.sub(r'[^\x00-\x7f]|\W', r'-', name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment