mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 20:29:10 +00:00
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
This commit is contained in:
parent
795a929187
commit
b43d4a33d6
@ -18,7 +18,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 = /~?(?:\$):[^\s<>{}\[\]`|'"\\^~]+(?:\/|\b)/mg;
|
this.matchRegExp = /~?\$:[^\s<|]+(?:[^\s<|])/mg;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.parse = function() {
|
exports.parse = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user