1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-07 03:06:56 +00:00

Merge 5736d29ce1172ca56ae47b443fee55465a4e6468 into 961e74f73d230d0028efb586db07699120eac888

This commit is contained in:
zorrox1024 2025-04-04 15:00:28 +02:00 committed by GitHub
commit aa76b031ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -696,7 +696,7 @@ exports.encodeURIComponentExtended = 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|obsidian|data|skype):[^\s<>{}\[\]`|"\\^]+(?:\/|\b)/i;
var externalRegExp = /^(?:file|http|https|mailto|ftp|irc|news|obsidian|data|skype|zotero):[^\s<>{}\[\]`|"\\^]+(?:\/|\b)/i;
return externalRegExp.test(to);
};

View File

@ -124,7 +124,7 @@ var insertMacroCall = function(w,output,macroName,paramString) {
var isLinkExternal = function(to) {
var externalRegExp = /(?:file|http|https|mailto|ftp|irc|news|obsidian|data|skype):[^\s'"]+(?:\/|\b)/i;
var externalRegExp = /(?:file|http|https|mailto|ftp|irc|news|obsidian|data|skype|zotero):[^\s'"]+(?:\/|\b)/i;
return externalRegExp.test(to);
};
var rules = [