diff --git a/src/libs/SearchParser/searchParser.js b/src/libs/SearchParser/searchParser.js index 622c3f5f3c4a..713996d0cf09 100644 --- a/src/libs/SearchParser/searchParser.js +++ b/src/libs/SearchParser/searchParser.js @@ -209,7 +209,7 @@ function peg$parse(input, options) { var peg$r0 = /^[:=]/; var peg$r1 = /^[^"\r\n]/; - var peg$r2 = /^[A-Za-z0-9_@.\/#&+\-\\',;]/; + var peg$r2 = /^[A-Za-z0-9_@.\/#&+\-\\',;%]/; var peg$r3 = /^[ \t\r\n]/; var peg$e0 = peg$otherExpectation("operator"); @@ -245,7 +245,7 @@ function peg$parse(input, options) { var peg$e30 = peg$literalExpectation("\"", false); var peg$e31 = peg$classExpectation(["\"", "\r", "\n"], true, false); var peg$e32 = peg$otherExpectation("word"); - var peg$e33 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], "_", "@", ".", "/", "#", "&", "+", "-", "\\", "'", ",", ";"], false, false); + var peg$e33 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], "_", "@", ".", "/", "#", "&", "+", "-", "\\", "'", ",", ";", "%"], false, false); var peg$e34 = peg$otherExpectation("whitespace"); var peg$e35 = peg$classExpectation([" ", "\t", "\r", "\n"], false, false); diff --git a/src/libs/SearchParser/searchParser.peggy b/src/libs/SearchParser/searchParser.peggy index f9f681736c61..32d44f24d0d6 100644 --- a/src/libs/SearchParser/searchParser.peggy +++ b/src/libs/SearchParser/searchParser.peggy @@ -137,7 +137,7 @@ identifier quotedString "quote" = "\"" chars:[^"\r\n]* "\"" { return chars.join(""); } alphanumeric "word" - = chars:[A-Za-z0-9_@./#&+\-\\',;]+ { + = chars:[A-Za-z0-9_@./#&+\-\\',;%]+ { return chars.join("").trim().split(",").filter(Boolean); }