Typeahead working again

Fix for replacing characters in filenames
This commit is contained in:
OzzieIsaacs
2017-11-12 18:48:44 +01:00
parent ad16194798
commit b8d45b664a
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ def get_valid_filename(value, replace_whitespace=True):
value = unicode(re_slugify.sub('', value).strip())
if replace_whitespace:
#*+:\"/<>? are replaced by _
value = re.sub('[\*\+:\\\"/<>\?]+', u'_', value, flags=re.U)
value = re.sub(r'[\*\+:\\\"/<>\?]+', u'_', value, flags=re.U)
value = value[:128]
if not value: