Skip to content

Commit ead022e

Browse files
committed
[check] Fix insuffient comma check after "e.g." and "i.e."
1 parent 41da477 commit ead022e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/check-source.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ done |
212212
fail '"shall", "should", or "may" inside a note' || failed=1
213213

214214
# Comma after e.g. and i.e.
215-
grep -n "e\.g\.[^,]" $texfiles |
215+
grep -nP "e\.g\.(?!,)" $texfiles |
216216
fail '"e.g." must be followed by a comma'
217-
grep -n "i\.e\.[^,]" $texfiles |
217+
grep -nP "i\.e\.(?!,)" $texfiles |
218218
fail '"i.e." must be followed by a comma'
219219

220220

0 commit comments

Comments
 (0)