Skip to content

Commit

Permalink
reset prevMatchLengthToSkip after match found for successive iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm committed May 9, 2024
1 parent 5031ff6 commit 766523d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lexical-text/src/registerLexicalTextEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export function registerLexicalTextEntity<T extends TextNode>(
if (currentNode == null) {
return;
}
prevMatchLengthToSkip = 0;
prevSibling = replacementNode;
}
};
Expand Down

0 comments on commit 766523d

Please sign in to comment.