You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function parse_text_char() {
var result0;
if (/^[\-^$+\/():!&'~{}<>= ]/.test(input.charAt(pos))) {
result0 = input.charAt(pos);
pos++;
} else {
result0 = null;
if (reportFailures === 0) {
matchFailed("[\\-^$+\\/():!&'~{}<>= ]");
}
}
return result0;
}
jshint flags this as an error saying it's unescaped which breaks our build process. I think the code is working correctly but I've just started working with pegjs and haven't done much testing.
I think this can just be added to utils.quoteForRegexpClass(). It's interesting that jshint doesn't complain about the $. I can't find an option in jshint to turn this check off like I was able to with line breaks or I would have done that.
The text was updated successfully, but these errors were encountered:
I have the following rule:
This generates:
jshint flags this as an error saying it's unescaped which breaks our build process. I think the code is working correctly but I've just started working with pegjs and haven't done much testing.
I think this can just be added to utils.quoteForRegexpClass(). It's interesting that jshint doesn't complain about the $. I can't find an option in jshint to turn this check off like I was able to with line breaks or I would have done that.
The text was updated successfully, but these errors were encountered: