sindresorhus / linkify-urls

Linkify URLs in a string
MIT License
158 stars 22 forks source link

Support of non-ASCII urls #23

Open tuoxiansp opened 5 years ago

tuoxiansp commented 5 years ago

Please support CJK urls like: https://语c.com

see https://runkit.com/tuoxiansp/5c68df202420a30012202c06

I also tested url-regex, this supports well:

https://runkit.com/tuoxiansp/5c68de8514a5c10014ac66c2

sindresorhus commented 5 years ago

Sure. PR welcome. I think you can use the regex u flag and \p{L} (letters) and \p{Nd} (digits). We cannot use the url-regex package as it has some other limitations.