mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 08:13:14 +00:00
Improved sanitize function to replace apostrophe and backticks
This commit is contained in:
parent
d8fffe8e52
commit
592dc799e9
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ def sanitize(string, ignore_characters=None, default_characters={'-', ':', '(',
|
|||
string = re.sub(r'[%s]' % re.escape(''.join(characters)), ' ', string)
|
||||
|
||||
# remove some characters
|
||||
characters = {'\''} - ignore_characters
|
||||
characters = {'\'', '´', '`', '’'} - ignore_characters
|
||||
if characters:
|
||||
string = re.sub(r'[%s]' % re.escape(''.join(characters)), '', string)
|
||||
|
||||
|
|
Loading…
Reference in a new issue