From 3ad94ebe7a271207b63038d96c015eebaa6ee5c7 Mon Sep 17 00:00:00 2001 From: taiga-family-bot Date: Wed, 2 Oct 2024 13:35:23 +0000 Subject: [PATCH] chore: apply changes after linting [bot] --- projects/editor/extensions/link/index.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/projects/editor/extensions/link/index.ts b/projects/editor/extensions/link/index.ts index ace0990df..ef327249d 100644 --- a/projects/editor/extensions/link/index.ts +++ b/projects/editor/extensions/link/index.ts @@ -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);