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

accept emoji in URLs (fix for #238) #276

Merged
merged 1 commit into from
Jul 31, 2019

Conversation

adamdavidcole
Copy link

Fix for #238: Emoji IDNs should be hyperlinked

This solution to accepting emoji in URLs might be too naive, but thought it was worth suggesting.

Emoji are becoming more popular in URLs. For instance, emojipedia accepts emoji based URLs: http://📙.la/🧛🏻‍♂️.

This adds the emoji unicode range to the alphaCharsAndMarksStr. I think most end users don't see a difference between letters and emoji, but maybe it belongs in a different class.

Demo:
Screen Shot 2019-06-06 at 6 27 41 PM

@gregjacobs
Copy link
Owner

Hey @adamdavidcole, thanks so much for this PR. Sorry for such a delay in merging. I've basically had no time to even launch my browser and point it to GitHub :/

I think this approach is good though, and it does seem like more and more emojis are appearing in URLs. Thanks for the contribution!

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