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

Increase TLD max length from 4 to 14 in link regex #68

Closed
wants to merge 1 commit into from

Conversation

LanaCoyote
Copy link
Contributor

This allows us to autolink new ICANN domain names.

14 because the longest domain I can find is .cancerresearch

This allows us to autolink new ICANN domain names.

14 because the longest domain I can find is .cancerresearch
@kylewm
Copy link
Owner

kylewm commented Jul 31, 2015

honestly this just makes the problem worse (in my experience), since there are so many more false positives (there are already a lot just with 4 characters). I would prefer to shift this code over to use brevity to autolink since it has a comprehensive list of all the actual TLDs and checks against them.

@LanaCoyote
Copy link
Contributor Author

Alright, I've made this into an issue at #69 instead.

@LanaCoyote LanaCoyote closed this Jul 31, 2015
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.

None yet

2 participants