1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

allows textPrimitives.anyLetter in syslink (#2596)

* allows textPrimitives.anyLetter in syslink

now only supports anyletter as per request by @jermolene
This commit is contained in:
Tobias Beer 2016-10-08 12:51:07 +02:00 committed by Jeremy Ruston
parent 641eeaf611
commit c7b31b0242

View File

@ -18,7 +18,12 @@ exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /~?\$:\/[a-zA-Z0-9/.\-_]+/mg;
this.matchRegExp = new RegExp(
"~?\\$:\\/(?:" +
$tw.config.textPrimitives.anyLetter +
"|[\/._-])+",
"mg"
);
};
exports.parse = function() {