Use boundaries in cron syntax rules

Fixes #1739
This commit is contained in:
Zachary Yedidia 2020-06-24 16:00:56 -04:00
parent 3ddb2ee316
commit 05cbc310f3
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -21,9 +21,9 @@ rules:
- type: "^[A-Z]+\\="
# Months and weekday keywords
- type: "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec"
- constant: "sun|mon|tue|wed|thu|fri|sat"
- type: "\\@(reboot|yearly|annually|monthly|weekly|daily|midnight|hourly)"
- type: "\\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\b"
- constant: "\\b(sun|mon|tue|wed|thu|fri|sat)\\b"
- type: "\\@(reboot|yearly|annually|monthly|weekly|daily|midnight|hourly)\\b"
# Conditionals
- special: "(\\{|\\}|\\(|\\)|\\;|\\]|\\[|`|\\\\|\\$|<|>|^|!|=|&|\\|)"