mirror of
https://github.com/janeczku/calibre-web
synced 2025-10-23 11:27:41 +00:00
Typeahead working again
Fix for replacing characters in filenames
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user