mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-01 06:41:18 -08:00
parent
65ffe96cc2
commit
ca95f1069f
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ exports.findNextMatch = function(startPos) {
|
|||
this.matchRegExp.lastIndex = startPos;
|
||||
this.match = this.matchRegExp.exec(this.parser.source);
|
||||
if(this.match) {
|
||||
this.endMatchRegExp.lastIndex = startPos + this.match[0].length;
|
||||
this.endMatchRegExp.lastIndex = this.match.index + this.match[0].length;
|
||||
this.endMatch = this.endMatchRegExp.exec(this.parser.source);
|
||||
if(this.endMatch) {
|
||||
return this.match.index;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ exports.findNextMatch = function(startPos) {
|
|||
this.matchRegExp.lastIndex = startPos;
|
||||
this.match = this.matchRegExp.exec(this.parser.source);
|
||||
if(this.match) {
|
||||
this.endMatchRegExp.lastIndex = startPos + this.match[0].length;
|
||||
this.endMatchRegExp.lastIndex = this.match.index + this.match[0].length;
|
||||
this.endMatch = this.endMatchRegExp.exec(this.parser.source);
|
||||
if(this.endMatch) {
|
||||
return this.match.index;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue