mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
parent
65ffe96cc2
commit
ca95f1069f
@ -31,7 +31,7 @@ exports.findNextMatch = function(startPos) {
|
|||||||
this.matchRegExp.lastIndex = startPos;
|
this.matchRegExp.lastIndex = startPos;
|
||||||
this.match = this.matchRegExp.exec(this.parser.source);
|
this.match = this.matchRegExp.exec(this.parser.source);
|
||||||
if(this.match) {
|
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);
|
this.endMatch = this.endMatchRegExp.exec(this.parser.source);
|
||||||
if(this.endMatch) {
|
if(this.endMatch) {
|
||||||
return this.match.index;
|
return this.match.index;
|
||||||
|
@ -31,7 +31,7 @@ exports.findNextMatch = function(startPos) {
|
|||||||
this.matchRegExp.lastIndex = startPos;
|
this.matchRegExp.lastIndex = startPos;
|
||||||
this.match = this.matchRegExp.exec(this.parser.source);
|
this.match = this.matchRegExp.exec(this.parser.source);
|
||||||
if(this.match) {
|
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);
|
this.endMatch = this.endMatchRegExp.exec(this.parser.source);
|
||||||
if(this.endMatch) {
|
if(this.endMatch) {
|
||||||
return this.match.index;
|
return this.match.index;
|
||||||
|
Loading…
Reference in New Issue
Block a user