kevva / url-regex

Regular expression for matching URLs
MIT License
353 stars 65 forks source link

Parenthesis are included as part of url #42

Closed davidmatas closed 7 years ago

davidmatas commented 7 years ago

Hi!

I'm trying to extract links from a text like this:

const text = "Hello this is my url (https://www.miurl.org/en/test) googbye"
text.match(urlRegex({strict: false}) // ["https://www.uclg.org/en/node/27407)"]

It includes the last parenthesis as part of the link

kevva commented 7 years ago

https://github.com/kevva/url-regex/pull/35