mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-22 11:26:56 +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:
parent
641eeaf611
commit
c7b31b0242
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user