fruitpicker01 commited on
Commit
e670c72
·
verified ·
1 Parent(s): 6033d06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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('»')):