Try to fix emoticons for regex

This commit is contained in:
2019-10-11 05:59:14 -07:00
parent 6dbd82da71
commit 572435bd12
2 changed files with 21 additions and 21 deletions

View File

@ -50,7 +50,7 @@ class punctuationManager():
if ' ' in punctuation:
resultText = resultText.replace(' ',' ' + punctuationDict[' '] + ' ')
for key,item in punctuationDict.items():
if key in punctuation and key not in ' ':
if (punctuation != '' and key in punctuation) and key not in ' ':
if self.env['runtime']['settingsManager'].getSetting('general', 'respectPunctuationPause') and \
len(key) == 1 and \
key in "',.;:?!":