Skip to content

Commit

Permalink
Allow void fragment identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Croney committed Jul 20, 2016
1 parent 319233f commit 635becb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/extensions/anchor.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@
// Matches any alphabetical characters followed by ://
// Matches protocol relative "//"
// Matches common external protocols "mailto:" "tel:" "maps:"
// Matches relative hash link, "#" followed by any character
var urlSchemeRegex = /^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#.+/i,
// Matches relative hash link, begins with "#"
var urlSchemeRegex = /^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i,
// var te is a regex for checking if the string is a telephone number
telRegex = /^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/;
if (telRegex.test(value)) {
Expand Down

0 comments on commit 635becb

Please sign in to comment.