Skip to content

Commit

Permalink
Unnecessary escape character.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Dec 3, 2019
1 parent 0418c9a commit b622b8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/res/common.js
Expand Up @@ -37,14 +37,14 @@ if ( document.location.protocol !== "file:"
elementEvent.nonInter = false;
elementEvent.loc = href;

if (href.match(/^mailto\:/i)) {
if (href.match(/^mailto:/i)) {
elementEvent.category = "Emails";
elementEvent.action = "Click email address";
elementEvent.label = elementEvent.label.replace(/^mailto\: /, "");
elementEvent.label = elementEvent.label.replace(/^mailto: /, "");
} else if (href.match(/\.(exe|zip|tar\.gz|dmg)$/i)) {
elementEvent.category = "Downloads";
elementEvent.action = "Click download file";
} else if ( href.match(/^https?\:/i)
} else if ( href.match(/^https?:/i)
&& !href.match(/opencor\.ws/i)) {
elementEvent.category = "External links";
elementEvent.action = "Click external link";
Expand Down

0 comments on commit b622b8e

Please sign in to comment.