Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Feb 19, 2024
1 parent 2548866 commit f18c1e8
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions Microsoft/Dashes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ level: error
action:
name: edit
params:
- remove
- ' '
- trim
- " "
tokens:
- '[—–]\s|\s[—–]'
- '\s[—–]\s'
4 changes: 2 additions & 2 deletions Microsoft/HeadingPunctuation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ scope: heading
action:
name: edit
params:
- remove
- '.?!'
- trim_right
- ".?!"
tokens:
- '[a-z][.?!](?:\s|$)'
8 changes: 4 additions & 4 deletions Microsoft/Hyphens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ nonword: true
action:
name: edit
params:
- replace
- '-'
- ' '
- regex
- "-"
- " "
tokens:
- '\s[^\s-]+ly-'
- '\b[^\s-]+ly-\w+\b'
8 changes: 4 additions & 4 deletions Microsoft/Negative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ level: error
action:
name: edit
params:
- replace
- '-'
- ''
- regex
- "-"
- ""
tokens:
- '\s-\d+\s'
- '-\d+(?:\.\d+)?'
8 changes: 4 additions & 4 deletions Microsoft/RangeFormat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ level: error
action:
name: edit
params:
- replace
- '-'
- ''
- regex
- "-"
- ""
tokens:
- '\b\d+\s?[-]\s?\d+\b'
- '\b\d+\s?-\s?\d+\b'
6 changes: 3 additions & 3 deletions Microsoft/RangeTime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ level: error
action:
name: edit
params:
- replace
- '[-–]'
- 'to'
- regex
- "[-–]"
- "to"
tokens:
- '\b(?:AM|PM)\s?[-–]\s?.+(?:AM|PM)\b'

0 comments on commit f18c1e8

Please sign in to comment.