Skip to content

Conversation

@jamis
Copy link
Contributor

@jamis jamis commented Apr 27, 2012

Given a URL that includes trailing non-latin word characters, those characters will be stripped off by the current implementation, because they do not match "\w".

This pull request uses "\p{Word}" instead of "\w" so that all unicode word characters will match, and will be preserved in the autolinked URL.

xuanxu added a commit that referenced this pull request Apr 27, 2012
Play nicely with non-latin characters in autolinked urls
@xuanxu xuanxu merged commit 5097044 into tenderlove:master Apr 27, 2012
@xuanxu
Copy link
Collaborator

xuanxu commented Apr 27, 2012

Merged, thanks!

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