lipoja / URLExtract

URLExtract is python class for collecting (extracting) URLs from given text based on locating TLD.
MIT License
242 stars 61 forks source link

Parenthesis in found urls #77

Closed javad94 closed 3 years ago

javad94 commented 4 years ago

Hi, there is a bug in the case of URLs that ending with a slash and a parenthesis. So, for example, when we have a string such as: some_str = "some string with urls (example.com)" or some_str = "some string with urls ( example.com)" The result would be: ['example.com'] Which is correct. But when we have a string such as: some_str = "some string with urls ( example.com/somepath)" The result would be: ['example.com/somepath)'] or some_str = "some string with urls ( example.com/)" The result would be: ['example.com/)'] Which is inccorect.

lipoja commented 4 years ago

Hi @javad94, thank you for reporting this issue.

lipoja commented 3 years ago

This issue will be fixed in next release.