speice.io/.styles/Microsoft/RangeTime.yml

14 lines
272 B
YAML
Raw Normal View History

2024-09-30 21:01:59 -04:00
extends: existence
message: "Use 'to' instead of a dash in '%s'."
link: https://docs.microsoft.com/en-us/style-guide/numbers
nonword: true
level: error
action:
name: edit
params:
- regex
- "[-]"
- "to"
tokens:
- '\b(?:AM|PM)\s?[-]\s?.+(?:AM|PM)\b'