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

Add flag to allow no-email mailto links #657

Merged
merged 3 commits into from
Oct 19, 2021

Conversation

PeterJCLaw
Copy link
Contributor

This defaults to erroring about mailto links with email addresses for backwards compatibility, however I'd be equally happy to invert this and have the default allow the no-email case.

Fixes #552.

This defaults to erroring about mailto links with email addresses
for backwards compatibility, however I'd be equally happy to invert
this and have the default allow the no-email case.

Fixes gjtorikian#552.
@gjtorikian
Copy link
Owner

Thanks for the contribution! To match consistency with other options, can you rename this to ignore_empty_mailto?

@PeterJCLaw
Copy link
Contributor Author

Thanks for the contribution! To match consistency with other options, can you rename this to ignore_empty_mailto?

Sure, I wasn't sure which way around the name should be (there seem to be some both ways around).

I'd originally thought to use "empty" in the name, but decided against in case it implied that href="mailto:" would be considered valid. Perhaps that's over-thinking it?

@PeterJCLaw
Copy link
Contributor Author

@gjtorikian I'm not sure what the lint failure here means (I don't appear to have changed the file it's in); I'm not usually a ruby developer. Could you suggest what I need to do to fix it?

@gjtorikian gjtorikian merged commit 2d924a1 into gjtorikian:main Oct 19, 2021
@gjtorikian
Copy link
Owner

Don't worry about it--I fixed it. Thanks again!

@PeterJCLaw PeterJCLaw deleted the mailto-without-email-ignore branch October 19, 2021 18:16
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.

mailto without email shouldn't fail
2 participants