mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 10:39:18 +08:00
add link pasterule support for parenthesis
This commit is contained in:
parent
b19baa0d4a
commit
358d2228d9
@ -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 }),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user