Skip to content

Commit

Permalink
fix(rule): latin - exclude via that is part of a word
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Jun 9, 2024
1 parent fe4b198 commit cdcae1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Prim/Latin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ swap:
'\b(?:ie|i\.e\.)[\s,]': that is
'\bvs\.': against
versus: against
via: over|through
'\bvia': over|through
'\bviz\.': namely
3 changes: 2 additions & 1 deletion test/fixtures/Latin/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ It'll be the Red Sox vs. the Yankees in tonight's game.
Monitor your liabilities versus your assets.

<!-- via -->
The London to Cairo flight goes via Rome
The London to Cairo flight goes via Rome.
I could not comprehend the abbreviated captions. <!-- negation -->

<!-- viz -->
Our philosophy is minimalist, viz., simple lines and clean colors.
2 changes: 1 addition & 1 deletion test/snapshots/Latin.log
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ test.md:21:33:Prim.Latin:Avoid latin. Use 'that is' instead of 'ie,'.
test.md:24:22:Prim.Latin:Avoid latin. Use 'against' instead of 'vs.'.
test.md:27:26:Prim.Latin:Avoid latin. Use 'against' instead of 'versus'.
test.md:30:33:Prim.Latin:Avoid latin. Use 'over' or 'through' instead of 'via'.
test.md:33:31:Prim.Latin:Avoid latin. Use 'namely' instead of 'viz.'.
test.md:34:31:Prim.Latin:Avoid latin. Use 'namely' instead of 'viz.'.

0 comments on commit cdcae1c

Please sign in to comment.