From 592dc799e967cb68e60ce51ca9295591fc895c01 Mon Sep 17 00:00:00 2001 From: Bruno Maia Date: Tue, 30 Nov 2021 01:15:14 +0000 Subject: [PATCH] Improved sanitize function to replace apostrophe and backticks --- libs/subliminal_patch/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/utils.py b/libs/subliminal_patch/utils.py index fb6bba5da..912ebf6fa 100644 --- a/libs/subliminal_patch/utils.py +++ b/libs/subliminal_patch/utils.py @@ -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)