Spaces:
Runtime error
Runtime error
import re | |
strange_double_quotes = [ | |
"«", | |
"‹", | |
"»", | |
"›", | |
"„", | |
"“", | |
"‟", | |
"”", | |
"❝", | |
"❞", | |
"❮", | |
"❯", | |
"〝", | |
"〞", | |
"〟", | |
""", | |
] | |
strange_single_quotes = ["‘", "‛", "’", "❛", "❜", "`", "´", "‘", "’"] | |
DOUBLE_QUOTE_REGEX = re.compile("|".join(strange_double_quotes)) | |
SINGLE_QUOTE_REGEX = re.compile("|".join(strange_single_quotes)) | |