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

Empty mailto is generating undesired errors. #742

Closed
ShoGinn opened this issue Jul 27, 2022 · 3 comments
Closed

Empty mailto is generating undesired errors. #742

ShoGinn opened this issue Jul 27, 2022 · 3 comments

Comments

@ShoGinn
Copy link

ShoGinn commented Jul 27, 2022

With the new version 4.3.0 the parameter --ignore-empty-mailto doesn't seem to function.

Environment:

##[group]Run chabad360/htmlproofer@master
with:
  directory: ./public
  arguments: --allow-hash-href --ignore-empty-alt --disable-external --ignore-empty-mailto

Output:

htmlproofer 4.3.0
Running 3 checks (Scripts, Links, Images) in ["./public"] on *.html files...


Checking 412 internal links
Ran on 247 files!


For the Links check, the following failures were found:

* At ./public/post/1755/index.html:6:

  mailto:?subject=Farewell%20but%20not%20goodbye&body=https://example.com/post/1755/ contains no email address

Line in source:

<a href="mailto:?subject=Farewell%20but%20not%20goodbye&body=https://example.com/post/1755/" target=_blank rel=noopener class=share-btn-email aria-label=envelope><i class="fas fa-envelope"></i></a>
@gjtorikian
Copy link
Owner

Can you try

--ignore-empty-mailto=true

instead of just --ignore-empty-mailto?

Closing this because I think that will fix it, reopen if that's not the case.

@ShoGinn
Copy link
Author

ShoGinn commented Jul 27, 2022

@gjtorikian you are right; adding an explicit =true does fix it..

Just weird the change ;)

@gjtorikian
Copy link
Owner

Yeah, lately the CLI parser has been causing a lot of problems. I noticed the library has not been updated since 2020, so it might be time to replace it with a more modern one.

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

No branches or pull requests

2 participants