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

Add - to allowed characters for inline HTML #92

Merged
merged 2 commits into from
Dec 25, 2015

Conversation

neonichu
Copy link
Contributor

This allows things like data attributes to work properly in inline HTML.

This allows things like data attributes to work properly in inline HTML.
@@ -248,6 +248,7 @@ - (NSRange)_parseNameWithScanner:(MMScanner *)scanner
{
NSMutableCharacterSet *nameSet = [NSMutableCharacterSet alphanumericCharacterSet];
[nameSet addCharactersInString:@":"];
[nameSet addCharactersInString:@"-"];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add this in the previous call to addCharactersInString: instead of adding a second call?

@mdiep
Copy link
Owner

mdiep commented Dec 24, 2015

Thanks for the pull request! Just the one nit, otherwise things look great!

@neonichu
Copy link
Contributor Author

👍 — updated the PR.

@mdiep
Copy link
Owner

mdiep commented Dec 25, 2015

Thank you! ✨

mdiep added a commit that referenced this pull request Dec 25, 2015
…e-html

Add `-` to allowed characters for inline HTML
@mdiep mdiep merged commit 82647ca into mdiep:master Dec 25, 2015
@neonichu neonichu deleted the support-data-attributes-in-inline-html branch December 25, 2015 17:32
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.

2 participants