kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Ensured terminator matches take precedence over rule matches
rodzic
d30b63f752
commit
80b2d9c9fe
|
@ -88,7 +88,7 @@ WikiTextRenderer.prototype.parseRun = function(terminatorRegExp) {
|
|||
while(this.pos < this.sourceLength && (terminatorMatch || runRuleMatch)) {
|
||||
// Return if we've found the terminator, and it precedes any run rule match
|
||||
if(terminatorMatch) {
|
||||
if(!runRuleMatch || runRuleMatch.index > terminatorMatch.index) {
|
||||
if(!runRuleMatch || runRuleMatch.index >= terminatorMatch.index) {
|
||||
if(terminatorMatch.index > this.pos) {
|
||||
tree.push($tw.Tree.Text(this.source.substring(this.pos,terminatorMatch.index)));
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue