Skip to content

Commit d6a089c

Browse files
authored
Merge pull request #43 from debbiedub/fix_import_problem_in_node
Fix the incorrectly formatted strings
2 parents b37f99a + 8e75164 commit d6a089c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fcp3/node.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3214,8 +3214,10 @@ def guessMimetype(filename: str | bytes) -> str:
32143214
return m
32153215

32163216

3217-
_re_slugify = re.compile('[^\w\s\.-]', re.UNICODE)
3218-
_re_slugify_multidashes = re.compile('[-\s]+', re.UNICODE)
3217+
_re_slugify = re.compile(r'[^\w\s\.-]', re.UNICODE)
3218+
_re_slugify_multidashes = re.compile(r'[-\s]+', re.UNICODE)
3219+
3220+
32193221
def toUrlsafe(filename):
32203222
"""Make a filename url-safe, keeping only the basename and killing all
32213223
potentially unfitting characters.

0 commit comments

Comments
 (0)