mvdan / xurls

Extract urls from text
BSD 3-Clause "New" or "Revised" License
1.19k stars 116 forks source link

character ranges can optionally be limited to ascii #69

Closed ZLeQ closed 2 years ago

ZLeQ commented 2 years ago

the xurls matches a lot of CJK characters i need to control the Unicode range can you provide an option to match only ascii?

case: https://en.wikipedia.org/wiki/Unicode介绍了Unicode知识

mvdan commented 2 years ago

What is the use case? That is presumably all a valid URL, as you can see GitHub marks it as such and you can enter it into a browser and it works without any spaces.

mvdan commented 2 years ago

No response; closing.