From b43d4a33d6408d1855d1b410195083062ac64e9f Mon Sep 17 00:00:00 2001 From: Tobias Beer Date: Sun, 11 Jan 2015 11:04:02 +0100 Subject: [PATCH] simplified regexp Ok, I think I've got it now. The following matches all... 1. starting with a literal `$:` 2. then any number of character not a whitespace, `<` or `|` 3. closing with anything that is, again, not a whitespace, `<` or `|` Test here... http://tbdemo.tiddlyspot.com/#Autolink%20System%20Tiddlers --- core/modules/parsers/wikiparser/rules/syslink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/parsers/wikiparser/rules/syslink.js b/core/modules/parsers/wikiparser/rules/syslink.js index d38b6dcf3..79c0a0df8 100644 --- a/core/modules/parsers/wikiparser/rules/syslink.js +++ b/core/modules/parsers/wikiparser/rules/syslink.js @@ -18,7 +18,7 @@ exports.types = {inline: true}; exports.init = function(parser) { this.parser = parser; // Regexp to match - this.matchRegExp = /~?(?:\$):[^\s<>{}\[\]`|'"\\^~]+(?:\/|\b)/mg; + this.matchRegExp = /~?\$:[^\s<|]+(?:[^\s<|])/mg; }; exports.parse = function() {