mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-09 08:13:04 -07: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
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue