mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 09:47:19 +09:00
parser: Check and prompt for empty patterns and region properties (fix crash) (#3256)
* parser: Precise error message for missing `start` & `end` in region * parser: Check and prompt for empty patterns and region properties * syntax: Remove empty identifier pattern from log definition
This commit is contained in:
@@ -62,8 +62,6 @@ rules:
|
||||
# - identifier: "^([0-2][0-9][0-2][0-9][-/]?[0-9][0-9][-/]?[0-9][0-9]\\s[0-9][0-9]:[0-9][0-9](:[0-9][0-9])?(\\.?[0-9][0-9][0-9])?)"
|
||||
- identifier: "^(\\d{4}[-/]?\\d{2}[-/]?\\d{2}\\s\\d{2}:\\d{2}(:\\d{2})?(\\.?\\d{2,8})?)"
|
||||
- identifier: "^([0-2][0-9]|[0-2]-?[0-9][0-9]-?[0-9][0-9])\\-([0-1][0-9])\\-([0-3][0-9]) ([0-2][0-9])\\:([0-5][0-9])\\:([0-5][0-9]),([0-9][0-9][0-9])"
|
||||
# ISO 8601:2004(E)
|
||||
- identifier: ""
|
||||
# Complete precision:
|
||||
- identifier: "^(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z))"
|
||||
# No milliseconds:
|
||||
|
||||
Reference in New Issue
Block a user