From 6bdb5917a51ad59e4a7f1ecaf826cef02f30a009 Mon Sep 17 00:00:00 2001 From: Armando Guarino Date: Wed, 6 Nov 2024 14:06:48 +0100 Subject: [PATCH] refactor: remove logs and fix typo --- packages/extension-link/src/link.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/extension-link/src/link.ts b/packages/extension-link/src/link.ts index 353e55979..738d588d0 100644 --- a/packages/extension-link/src/link.ts +++ b/packages/extension-link/src/link.ts @@ -263,9 +263,8 @@ export const Link = Mark.create({ const foundLinks: PasteRuleMatch[] = [] if (text) { - console.log(text) const { validate, protocols, defaultProtocol } = this.options - const links = find(text).filter(item => item.isLink && validate(item.href, { defaultValidate: href => !!isAllowedUri(href, protocols), protocols, defaultProtocol })) + const links = find(text).filter(item => item.isLink && validate(item.value, { defaultValidate: href => !!isAllowedUri(href, protocols), protocols, defaultProtocol })) if (links.length) { links.forEach(link => (foundLinks.push({