Skip to content

Commit

Permalink
refactor: remove logs and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
guarmo committed Nov 6, 2024
1 parent 444e6e5 commit 6bdb591
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/extension-link/src/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,8 @@ export const Link = Mark.create<LinkOptions>({
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({
Expand Down

0 comments on commit 6bdb591

Please sign in to comment.