Skip to content

Commit 68258c1

Browse files
committed
fix spec/examples/parse-apache-logs failure due to QUOTEDSTRING not matching empty ""
1 parent c81e8c6 commit 68258c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patterns/grok-patterns

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SPACE \s*
1414
DATA .*?
1515
GREEDYDATA .*
1616
#QUOTEDSTRING (?:(?<!\\)(?:"(?:\\.|[^\\"])*"|(?:'(?:\\.|[^\\'])*')|(?:`(?:\\.|[^\\`])*`)))
17-
QUOTEDSTRING (?>(?<!\\)(?>"(?>\\.|[^\\"]+)+"|(?>'(?>\\.|[^\\']+)+')|(?>`(?>\\.|[^\\`]+)+`)))
17+
QUOTEDSTRING (?>(?<!\\)(?>"(?>\\.|[^\\"]+)+"|""|(?>'(?>\\.|[^\\']+)+')|''|(?>`(?>\\.|[^\\`]+)+`)|``))
1818
UUID [A-Fa-f0-9]{8}-(?:[A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}
1919

2020
# Networking

0 commit comments

Comments
 (0)