diff --git a/demos/src/Marks/Link/React/index.spec.js b/demos/src/Marks/Link/React/index.spec.js index bc13e1af8..ea5bf9057 100644 --- a/demos/src/Marks/Link/React/index.spec.js +++ b/demos/src/Marks/Link/React/index.spec.js @@ -136,7 +136,7 @@ context('/src/Marks/Link/React/', () => { disallowedProtocols.forEach(url => { cy.get('.tiptap').then(([{ editor }]) => { editor.commands.setContent(`

Example Text

`) - expect(editor.getHTML()).to.not.include(``) + expect(editor.getHTML()).to.not.include(url) }) }) }) @@ -147,7 +147,7 @@ context('/src/Marks/Link/React/', () => { disallowedDomains.forEach(url => { cy.get('.tiptap').then(([{ editor }]) => { editor.commands.setContent(`

Example Text

`) - expect(editor.getHTML()).to.not.include(``) + expect(editor.getHTML()).to.not.include(url) }) }) }) diff --git a/packages/extension-link/src/link.ts b/packages/extension-link/src/link.ts index 738d588d0..f0500da54 100644 --- a/packages/extension-link/src/link.ts +++ b/packages/extension-link/src/link.ts @@ -73,7 +73,7 @@ export interface LinkOptions { HTMLAttributes: Record /** - * A validation function that modifies link verification for the auto linker. + * A validation function that modifies link verification. * @param url - The url to be validated. * @param ctx - An object containing: * - `defaultValidate`: A function that performs the default URL validation.