Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed fix for escapeTagRegExp does not escape all possible problematic characters #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sdsalyer
Copy link

Hey there,

I ran into an issue where question marks in attribute values were causing a failure to parse shortcodes that contained them, e.g.

[mytag myattribute="What?"]

I traced this down to escapeTagRegExp failing to escape the question marks, so I added additional regex string escape characters as per https://stackoverflow.com/a/6969486.

Hope this helps, and thanks for shortcode.js !

…overflow.com/a/6969486) -- Question marks in attribute values were causing failure to parse the shortcodes, e.g. [mytag myattribute="What?"]
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