Skip to content

Commit f18c1e8

Browse files
committed
Update actions
1 parent 2548866 commit f18c1e8

6 files changed

+20
-20
lines changed

Microsoft/Dashes.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ level: error
77
action:
88
name: edit
99
params:
10-
- remove
11-
- ' '
10+
- trim
11+
- " "
1212
tokens:
13-
- '[—–]\s|\s[—–]'
13+
- '\s[—–]\s'

Microsoft/HeadingPunctuation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ scope: heading
77
action:
88
name: edit
99
params:
10-
- remove
11-
- '.?!'
10+
- trim_right
11+
- ".?!"
1212
tokens:
1313
- '[a-z][.?!](?:\s|$)'

Microsoft/Hyphens.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ nonword: true
77
action:
88
name: edit
99
params:
10-
- replace
11-
- '-'
12-
- ' '
10+
- regex
11+
- "-"
12+
- " "
1313
tokens:
14-
- '\s[^\s-]+ly-'
14+
- '\b[^\s-]+ly-\w+\b'

Microsoft/Negative.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ level: error
66
action:
77
name: edit
88
params:
9-
- replace
10-
- '-'
11-
- ''
9+
- regex
10+
- "-"
11+
- ""
1212
tokens:
13-
- '\s-\d+\s'
13+
- '-\d+(?:\.\d+)?'

Microsoft/RangeFormat.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ level: error
66
action:
77
name: edit
88
params:
9-
- replace
10-
- '-'
11-
- ''
9+
- regex
10+
- "-"
11+
- ""
1212
tokens:
13-
- '\b\d+\s?[-]\s?\d+\b'
13+
- '\b\d+\s?-\s?\d+\b'

Microsoft/RangeTime.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ level: error
66
action:
77
name: edit
88
params:
9-
- replace
10-
- '[-–]'
11-
- 'to'
9+
- regex
10+
- "[-–]"
11+
- "to"
1212
tokens:
1313
- '\b(?:AM|PM)\s?[-–]\s?.+(?:AM|PM)\b'

0 commit comments

Comments
 (0)