Skip to content

Commit

Permalink
chore: apply changes after linting [bot]
Browse files Browse the repository at this point in the history
  • Loading branch information
taiga-family-bot authored and github-actions[bot] committed Oct 2, 2024
1 parent aa8ef88 commit 3ad94eb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions projects/editor/extensions/link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,8 @@ function getCurrentWordBounds(editor: Editor): Range {
'\uFFFC',
);

const wordBefore = textBefore
.replaceAll(/\uFFFC/g, '')
.split(/\b/)
.pop();
const wordAfter = textAfter
.replaceAll(/\uFFFC/g, '')
.split(/\b/)
.shift();
const wordBefore = textBefore.replaceAll('', '').split(/\b/).pop();
const wordAfter = textAfter.replaceAll('', '').split(/\b/).shift();

const from = pos - (wordBefore?.length ?? 0);
const to = pos + (wordAfter?.length ?? 0);
Expand Down

0 comments on commit 3ad94eb

Please sign in to comment.