Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve URL detection Regex #8

Merged
merged 1 commit into from
May 2, 2022
Merged

Improve URL detection Regex #8

merged 1 commit into from
May 2, 2022

Conversation

seproDev
Copy link
Contributor

@seproDev seproDev commented May 2, 2022

Not perfect, but an improvement. Still not working are urls ending in ) as balanaced brackets would need to be checked. Probably some other errors as well.

Also moved the regex compiliation outside the loop drasticly improving performance.

Copy link
Owner

@TheTechRobo TheTechRobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Haven't fully tested, but LGTM. :-)

@TheTechRobo TheTechRobo merged commit 326c9c1 into TheTechRobo:main May 2, 2022
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