-
Notifications
You must be signed in to change notification settings - Fork 28
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
Added the ability to pass in a regEx string. #8
base: master
Are you sure you want to change the base?
Conversation
…regEx string used to detect emails and urls.
The previous regex string would flag numbers like 60.99 as a url, and it would flag any word with a dot like good.bye or anything with two dots like hello..there as urls. This new version does not flag these false positives, however, it will only catch emails and urls with the following extensions. .com .ru .org .gov .net .ir .in .uk .au .de .ua .edu .io .co
Added to this push request an updated regEx string for detecting urls and email addresses. This was tested on the following text and correctly flags all valid emails. I have tested it successfully against the string: "This paragraph is testing embedded urls like www.example.io |
…rd launch processing. If the method exists and returns true then LinkWell will not call the standard launch.
…cause a single regex string could not effectively detect every type of link (i.e. email, url, phone)
Allow passing a custom regEx string to override the built-in regex used to detect urls and emails.