From a119709dbc11978e97397cd7391539bda976966f Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Tue, 5 Jan 2021 21:33:26 +0100 Subject: [PATCH] add link pasterule support for exclamation marks --- packages/tiptap-extensions/src/marks/Link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tiptap-extensions/src/marks/Link.js b/packages/tiptap-extensions/src/marks/Link.js index 36e19e2d9..401a63d15 100644 --- a/packages/tiptap-extensions/src/marks/Link.js +++ b/packages/tiptap-extensions/src/marks/Link.js @@ -56,7 +56,7 @@ export default class Link extends Mark { pasteRules({ type }) { return [ pasteRule( - /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b([-a-zA-Z0-9@:%_+.~#?&//=,()]*)/gi, + /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b([-a-zA-Z0-9@:%_+.~#?&//=,()!]*)/gi, type, url => ({ href: url }), ),