Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -228,6 +228,7 @@ def correct_dash_usage(text):
|
|
228 |
text = re.sub(r'(?<=\d)[-–—](?=\d)', '–', text)
|
229 |
text = re.sub(r'(?<=[a-zA-Zа-яА-Я0-9])[-–—](?=[a-zA-Zа-яА-Я0-9])', '-', text)
|
230 |
text = re.sub(r'"([^\"]+)"', r'«\1»', text)
|
|
|
231 |
if text.count('"') == 1:
|
232 |
text = text.replace('"', '')
|
233 |
if (text.startswith('"') and text.endswith('"')) or (text.startswith('«') and text.endswith('»')):
|
|
|
228 |
text = re.sub(r'(?<=\d)[-–—](?=\d)', '–', text)
|
229 |
text = re.sub(r'(?<=[a-zA-Zа-яА-Я0-9])[-–—](?=[a-zA-Zа-яА-Я0-9])', '-', text)
|
230 |
text = re.sub(r'"([^\"]+)"', r'«\1»', text)
|
231 |
+
text = re.sub(r'(\*|_|`)+', '', text)
|
232 |
if text.count('"') == 1:
|
233 |
text = text.replace('"', '')
|
234 |
if (text.startswith('"') and text.endswith('"')) or (text.startswith('«') and text.endswith('»')):
|