Skip to content

Conversation

@paynecrl97
Copy link

I'm on latest Chrome, and the line return "#" + myid.replace( /(:|\.|\[|\]|,)/g, "\\$1" ) results in only a single backslash being inserted before each match, as opposed to double backslash,

eg hello:world > hello\:world

Changing to return "#" + myid.replace( /(:|\.|\[|\]|,)/g, "\\\\$1" ) fixes this.

I'm on latest Chrome, and the line `return "#" + myid.replace( /(:|\.|\[|\]|,)/g, "\\$1" )` results in only a single backslash being inserted before each match, as opposed to double backslash,

eg `hello:world` > `hello\:world`

Changing to `return "#" + myid.replace( /(:|\.|\[|\]|,)/g, "\\\\$1" )` fixes this.
@jquerybot
Copy link

Thank you for your pull request. It looks like this may be your first contribution to a jQuery Foundation project, if so we need you to sign our Contributor License Agreement (CLA).

📝 Please visit http://contribute.jquery.org/CLA/ to sign.

After you signed, the PR is checked again automatically after a minute. If there's still an issue, please reply here to let us know.


If you've already signed our CLA, it's possible your git author information doesn't match your CLA signature (both your name and email have to match), for more information, check the status of your CLA check.

Base automatically changed from master to main March 8, 2021 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants