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

Autolink domain name validation #253

Closed
wants to merge 3 commits into from
Closed

Conversation

MihaZupan
Copy link
Collaborator

@MihaZupan MihaZupan commented Oct 6, 2018

#252

This makes it so AutoLinkParser doesn't match links with domain names, that:

  • Have empty segments
  • Have less than 2 segments
  • Contain invalid characters
  • Contain an underscore in the last two segments

This also doesn't match empty emails in mailto: (mailto:@something.com)

@xoofx
I included the Specs.cs file that my VS emits, but it's obviously seriously deformed. Any idea on how to fix it? (I will obviously amend the last commit if I figure that one out)

@xoofx
Copy link
Owner

xoofx commented Oct 6, 2018

Thanks! Merged by commit e390a87 (I tried to rewrote the last Specs commit, without success, but it seems ok, so no worries)

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