Skip to content

Commit

Permalink
Fix more lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Nantris authored May 15, 2024
1 parent 6971e20 commit 715453f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extension-link/src/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ export const Link = Mark.create<LinkOptions>({
tag: 'a[href]',
getAttrs: dom => {
const href = dom.getAttribute('href')

// Check for any occurrence of 'javascript:'. Trim and lowercase both necessary
if (href && href.trim().toLowerCase().startsWith('javascript:')) {

Check failure on line 166 in packages/extension-link/src/link.ts

View workflow job for this annotation

GitHub Actions / lint (16)

Script URL is a form of eval
return false
}
return { href }
},
}];
}]
},

renderHTML({ HTMLAttributes }) {
Expand Down

0 comments on commit 715453f

Please sign in to comment.