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

fix: ignore attribute if mailto: is present #145

Merged
merged 2 commits into from
Sep 29, 2017

Conversation

sebastianomorando
Copy link
Contributor

@sebastianomorando sebastianomorando commented Sep 27, 2017

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
If I have a 'mailto' inside a href in an anchor tag file-loader tries to load a non existent file called "mailto:[email protected]"

What is the new behavior?
Ignore href in anchor tag if the string 'mailto:' is present

Does this PR introduce a breaking change?

  • Yes
  • No

If this PR contains a breaking change, please describe the following...

  • Impact:
  • Migration path for existing applications:
  • Github Issue(s) this is regarding:

Other information:

@jsf-clabot
Copy link

jsf-clabot commented Sep 27, 2017

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Sep 27, 2017

Codecov Report

Merging #145 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #145      +/-   ##
==========================================
+ Coverage   96.93%   96.96%   +0.03%     
==========================================
  Files           2        2              
  Lines          98       99       +1     
  Branches       19       20       +1     
==========================================
+ Hits           95       96       +1     
  Misses          3        3
Impacted Files Coverage Δ
index.js 96.62% <100%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dac21c2...688296b. Read the comment docs.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Can we add test?

@sebastianomorando
Copy link
Contributor Author

Added test

Copy link
Member

@michael-ciniawsky michael-ciniawsky left a comment

Choose a reason for hiding this comment

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

@michael-ciniawsky michael-ciniawsky changed the title Ignore attribute if mailto is present fix: ignore attribute if mailto: is present Sep 29, 2017
@michael-ciniawsky michael-ciniawsky merged commit 4b13d4c into webpack-contrib:master Sep 29, 2017
@michael-ciniawsky michael-ciniawsky added this to the 0.4.6 milestone Sep 29, 2017
@michael-ciniawsky michael-ciniawsky removed this from the 0.5.5 milestone Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants