Skip to content

Commit

Permalink
Merge pull request #50026 from Expensify/cmartins-handle%sign
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins authored Oct 3, 2024
2 parents e8c4faf + e2dfbca commit e199803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/libs/SearchParser/searchParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/libs/SearchParser/searchParser.peggy
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e199803

Please sign in to comment.