mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
Merge branch 'master' of https://github.com/ueberdosis/tiptap
This commit is contained in:
commit
a0e20ecf63
@ -56,7 +56,7 @@ export default class Link extends Mark {
|
|||||||
pasteRules({ type }) {
|
pasteRules({ type }) {
|
||||||
return [
|
return [
|
||||||
pasteRule(
|
pasteRule(
|
||||||
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-zA-Z]{2,}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g,
|
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/gi,
|
||||||
type,
|
type,
|
||||||
url => ({ href: url }),
|
url => ({ href: url }),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user