mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-05-24 18:24:06 +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) {
|
exports.init = function(parser) {
|
||||||
this.parser = parser;
|
this.parser = parser;
|
||||||
// Regexp to match
|
// Regexp to match
|
||||||
this.matchRegExp = /~?\$:\/[a-zA-Z0-9/.\-_]+/mg;
|
this.matchRegExp = new RegExp(
|
||||||
|
"~?\\$:\\/(?:" +
|
||||||
|
$tw.config.textPrimitives.anyLetter +
|
||||||
|
"|[\/._-])+",
|
||||||
|
"mg"
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.parse = function() {
|
exports.parse = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user