1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-22 02:33:17 +00:00

support zotero:// external link

This commit is contained in:
Jeffrey Zhang 2024-10-20 15:04:15 +08:00
parent a42a7972cb
commit 5736d29ce1
2 changed files with 2 additions and 2 deletions
core/modules/utils
plugins/tiddlywiki/tw2parser

@ -699,7 +699,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);
};

@ -127,7 +127,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 = [