Skip to content

Commit 6f2aa69

Browse files
committed
added a period check
1 parent 256a7ee commit 6f2aa69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tex_writing_issues/line_checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def check_line(line: str, rules_packs: List):
1818
keyword = rule[0]
1919
l.log("keyword: " + keyword)
2020
regex = re.compile(r"\b{}\b".format(keyword))
21-
if len(regex.findall(line)) != 0:
21+
regex_period = re.compile(r"\b{}.\b".format(keyword))
22+
if len(regex.findall(line)) != 0 or len(regex_period.findall(line)):
2223
print("""
2324
issue: {}, issue type: {},
2425
line: {}

0 commit comments

Comments
 (0)