Remove single quote from illegal characters in URLs

Fixes #2493
This commit is contained in:
Jermolene
2016-07-12 17:22:20 +01:00
parent 1299472c38
commit dca9e008ce
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -495,7 +495,7 @@ exports.escapeRegExp = function(s) {
// Checks whether a link target is external, i.e. not a tiddler title
exports.isLinkExternal = function(to) {
var externalRegExp = /^(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|'"\\^~]+(?:\/|\b)$/i;
var externalRegExp = /^(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|"\\^~]+(?:\/|\b)$/i;
return externalRegExp.test(to);
};