Browse Source

update: using yellow highlight for warning check

master
Dnomd343 2 years ago
parent
commit
cbc734b160
  1. 2
      src/punctuation/check.py

2
src/punctuation/check.py

@ -120,7 +120,7 @@ def existCheck(sentence: str) -> bool:
for warningPunctuation in warningPunctuations:
if warningPunctuation in sentence:
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:
print('%s\n%s' % ('-' * 128, sentence))
return not flag

Loading…
Cancel
Save