Skip to content

Commit d98efdb

Browse files
committed
feat(rule): preferred alternatives - world wide web
1 parent ce25904 commit d98efdb

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Prim/PreferredAlternatives.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ swap:
1515
chat ?bot?: chatbot
1616
open-source: open source
1717
(?:cell ?phone|smart ?phone): phone|mobile phone
18+
World Wide Web: web

test/fixtures/PreferredAlternatives/test.md

+3
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ I contributed a new feature to an open-source project.
3131
<!-- phone -->
3232
Have you seen my cell phone?
3333
My smartphone is running low on battery.
34+
35+
<!-- World Wide Web -->
36+
I'd better search the World Wide Web for a new recipe.

test/snapshots/PreferredAlternatives.log

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ test.md:23:16:Prim.PreferredAlternatives:Prefer using 'antivirus' over 'anti-vir
99
test.md:26:12:Prim.PreferredAlternatives:Prefer using 'chatbot' over 'chat bot'.
1010
test.md:29:35:Prim.PreferredAlternatives:Prefer using 'open source' over 'open-source'.
1111
test.md:32:18:Prim.PreferredAlternatives:Prefer using 'phone' or 'mobile phone' over 'cell phone'.
12-
test.md:33:4:Prim.PreferredAlternatives:Prefer using 'phone' or 'mobile phone' over 'smartphone'.
12+
test.md:33:4:Prim.PreferredAlternatives:Prefer using 'phone' or 'mobile phone' over 'smartphone'.
13+
test.md:36:23:Prim.PreferredAlternatives:Prefer using 'Web' over 'World Wide Web'.

0 commit comments

Comments
 (0)