regular-grammar
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "regular-grammar", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A simple regular grammar/parser generator", | ||
@@ -5,0 +5,0 @@ "author": "Victor Grishchenko <victor.grishchenko@gmail.com>", |
@@ -211,5 +211,7 @@ /** The class generates regex _parsers for simple regular languages | ||
function sterilize (pattern) { | ||
return pattern.replace(/\((\?:)?/g, '(?:'); | ||
// FIXME build sterilized, retire this hack | ||
return pattern.replace(/\((\?:)?/g, '(?:'). | ||
replace(/\\\(\?:/g, '\\('); | ||
} | ||
module.exports = Grammar; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52499
475