mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-30 23:23:02 +00:00 
			
		
		
		
	| @@ -26,7 +26,7 @@ exports.types = {inline: true}; | |||||||
| exports.init = function(parser) { | exports.init = function(parser) { | ||||||
| 	this.parser = parser; | 	this.parser = parser; | ||||||
| 	// Regexp to match | 	// Regexp to match | ||||||
| 	this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|'"\\^~]+(?:\/|\b)/mg; | 	this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|"\\^~]+(?:\/|\b)/mg; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| exports.parse = function() { | exports.parse = function() { | ||||||
|   | |||||||
| @@ -495,7 +495,7 @@ exports.escapeRegExp = function(s) { | |||||||
|  |  | ||||||
| // Checks whether a link target is external, i.e. not a tiddler title | // Checks whether a link target is external, i.e. not a tiddler title | ||||||
| exports.isLinkExternal = function(to) { | 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); | 	return externalRegExp.test(to); | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene