|
@ -120,7 +120,7 @@ def existCheck(sentence: str) -> bool: |
|
|
for warningPunctuation in warningPunctuations: |
|
|
for warningPunctuation in warningPunctuations: |
|
|
if warningPunctuation in sentence: |
|
|
if warningPunctuation in sentence: |
|
|
flag = True |
|
|
flag = True |
|
|
sentence = sentence.replace(warningPunctuation, '\033[0;31m%s\033[0;39m' % warningPunctuation) |
|
|
sentence = sentence.replace(warningPunctuation, '\033[0;33m%s\033[0;39m' % warningPunctuation) |
|
|
if flag: |
|
|
if flag: |
|
|
print('%s\n%s' % ('-' * 128, sentence)) |
|
|
print('%s\n%s' % ('-' * 128, sentence)) |
|
|
return not flag |
|
|
return not flag |
|
|