mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-21 16:34:01 +01:00
Bug in helpers.replace_illegal_chars
This commit is contained in:
@@ -181,7 +181,7 @@ def replace_illegal_chars(string, type="file"):
|
|||||||
if type == "file":
|
if type == "file":
|
||||||
string = re.sub('[\?"*:|<>/]', string)
|
string = re.sub('[\?"*:|<>/]', string)
|
||||||
if type == "folder":
|
if type == "folder":
|
||||||
string = re.sub('[:?<>"|]')
|
string = re.sub('[:?<>"|]', string)
|
||||||
|
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user