TomFrost / Jexl

Javascript Expression Language: Powerful context-based expression parser and evaluator
MIT License
559 stars 90 forks source link

Fix bug when escaping '\\' #94

Open ywtdzh opened 3 years ago

ywtdzh commented 3 years ago

The original version only replace ONE '\', if the string has more than one '\', the code won't escape them. Add 'g' flag to the escQuoteRegex.