Skip to content

Commit cf12614

Browse files
committed
feat(rule): preferred alternative for 12 am and 12 pm
1 parent 93c9ffa commit cf12614

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

compris/PreferredAlternatives.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ action:
66
name: replace
77
swap:
88
0-day: zero-day
9+
12 am: midnight
10+
12 pm: noon

fixtures/PreferredAlternatives/test.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22

33
<!-- 0-day -->
44
A hacker forum was found selling a 0-day exploit for a popular web browser.
5+
6+
<!-- 12 am -->
7+
Our online support is available until 12 am.
8+
9+
<!-- 12 pm -->
10+
Please submit your report by 12 pm tomorrow.
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
test.md:4:36:compris.PreferredAlternatives:Prefer using 'Zero-day' over '0-day'.
2+
test.md:7:39:compris.PreferredAlternatives:Prefer using 'Midnight' over '12 am'.
3+
test.md:10:30:compris.PreferredAlternatives:Prefer using 'Noon' over '12 pm'.

0 commit comments

Comments
 (0)