Skip to content

Commit

Permalink
handled non-essential backslashes for cases like mailto:foo@bar.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
konradoboza committed Apr 8, 2020
1 parent e804f8f commit da24931
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@

links.forEach((link) => {
const href = link.getAttribute('href');
const schemaPattern = /^[a-z0-9]+:\/\//i;
const schemaPattern = /^[a-z0-9]+:\/?\/?/i;
const protocolHref = protocolPrefix.concat(href);

if (!href) {
Expand Down

0 comments on commit da24931

Please # to comment.