mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-01 23:03:55 -08:00
Fix bug with extraneous dot in classed blocks
This commit is contained in:
parent
6fae946bda
commit
c31c12d698
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ exports.types = {block: true};
|
|||
exports.init = function(parser) {
|
||||
this.parser = parser;
|
||||
// Regexp to match
|
||||
this.matchRegExp = /@@((?:[^\.\r\n\s:]+:[^\r\n;]+;)+)?(\.(?:[^\r\n\s]+))?\r?\n/mg;
|
||||
this.matchRegExp = /@@((?:[^\.\r\n\s:]+:[^\r\n;]+;)+)?(?:\.([^\r\n\s]+))?\r?\n/mg;
|
||||
};
|
||||
|
||||
exports.parse = function() {
|
||||
|
|
@ -50,7 +50,7 @@ exports.parse = function() {
|
|||
styles.push(this.match[1]);
|
||||
}
|
||||
if(this.match[2]) {
|
||||
classes.push(this.match[2]);
|
||||
classes.push(this.match[2].split(".").join(" "));
|
||||
}
|
||||
// Move past the match
|
||||
this.parser.pos = this.matchRegExp.lastIndex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue