Open ywtdzh opened 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.
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.