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

Speed up the mailto check #174

Merged
merged 1 commit into from
Feb 20, 2015
Merged

Speed up the mailto check #174

merged 1 commit into from
Feb 20, 2015

Conversation

doktorbro
Copy link

Related to #173 I reduced the amount of checks.

if link.path.empty?
add_issue("#{link.href} contains no email address", l.line)
elsif !link.path.include?('@')
add_issue("#{link.href} contains an invalid email address", l.line)
Copy link
Author

Choose a reason for hiding this comment

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

Empty mailtos can not include @.

@gjtorikian
Copy link
Owner

Thanks!

gjtorikian added a commit that referenced this pull request Feb 20, 2015
@gjtorikian gjtorikian merged commit dfcc1a4 into master Feb 20, 2015
@gjtorikian gjtorikian deleted the speed-up branch February 20, 2015 23:13
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