Skip to content

Commit

Permalink
Add eslint-disable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nantris authored May 15, 2024
1 parent 715453f commit 911cf67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-link/src/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const Link = Mark.create<LinkOptions>({
getAttrs: dom => {
const href = dom.getAttribute('href')

// Check for any occurrence of 'javascript:'. Trim and lowercase both necessary
// eslint-disable-next-line no-script-url -- Check for any occurrence of 'javascript:'. Trim and lowercase both necessary
if (href && href.trim().toLowerCase().startsWith('javascript:')) {
return false
}
Expand Down

0 comments on commit 911cf67

Please sign in to comment.