Skip to content

Fix bug when escaping '\\' - #94

Open
ywtdzh wants to merge 1 commit into
TomFrost:masterfrom
ywtdzh:patch-1
Open

Fix bug when escaping '\\'#94
ywtdzh wants to merge 1 commit into
TomFrost:masterfrom
ywtdzh:patch-1

Conversation

@ywtdzh

@ywtdzh ywtdzh commented Oct 31, 2020

Copy link
Copy Markdown

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant