mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-10-29 22:53:00 +00:00
Fix bug with 2cb6400773
The problem was that we failed to escape the dash in the regexp, meaning that it was matching all characters from “.” to “_”.
This commit is contained in:
@@ -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 = /~?\$:\/[a-zA-Z0-9/.-_]+/mg;
|
this.matchRegExp = /~?\$:\/[a-zA-Z0-9/.\-_]+/mg;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.parse = function() {
|
exports.parse = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user