Skip to content

Conversation

@kyle-mccarthy
Copy link
Contributor

The change introduced in #832 used a regular expression not supported in all browser. This regular expression has been removed and replaced with a functional equivalent.

The replacement regex looks for an unescaped or already escaped question mark and replaces it with an escaped one. While it isn't as pretty since we still replace a properly escaped query, it was the most straightforward solution that didn't require additional conditional logic.

@desandro desandro merged commit 9f9ccf3 into metafizzy:master Oct 12, 2018
@desandro
Copy link
Member

Whoo! Thanks for this. I'm a Regex noob.

@desandro
Copy link
Member

This PR has been released in v3.0.6. Thank you again for your help!

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.

2 participants