Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm committed May 9, 2024
1 parent dda7560 commit 5abd79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lexical-text/src/registerLexicalTextEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function registerLexicalTextEntity<T extends TextNode>(
} else {
const nextMatch = getMatch(nextText);

if (nextMatch !== null && nextMatch.start === 0 && match === null) {
if (match === null && nextMatch !== null && nextMatch.start === 0) {
return;
}
}
Expand Down

0 comments on commit 5abd79f

Please sign in to comment.