Skip to content

Commit

Permalink
put back escape for adjacent nextMatch at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
2wheeh committed May 8, 2024
1 parent 89a9701 commit 4e14a94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/lexical-text/src/registerLexicalTextEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ export function registerLexicalTextEntity<T extends TextNode>(
if (currentNode == null) {
return;
}

const nextMatch = getMatch(nextText);
if (nextMatch !== null && nextMatch.start === 0) {
return;
}
}
};

Expand Down

0 comments on commit 4e14a94

Please sign in to comment.