From cbc734b1605ec34bdc809eb1db12f4bdfcbc41bb Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Thu, 15 Dec 2022 19:43:21 +0800 Subject: [PATCH] update: using yellow highlight for warning check --- src/punctuation/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/punctuation/check.py b/src/punctuation/check.py index c98abf1..4a81aad 100755 --- a/src/punctuation/check.py +++ b/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