improve link regex
This commit is contained in:
@@ -9,7 +9,7 @@ export interface LinkOptions {
|
|||||||
rel: string,
|
rel: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const pasteRegex = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b(?:[-a-zA-Z0-9@:%_+.~#?&//=]*)/gi
|
export const pasteRegex = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b(?:[-a-zA-Z0-9@:%._+~#=?!&/()]*)/gi
|
||||||
|
|
||||||
const Link = createMark({
|
const Link = createMark({
|
||||||
name: 'link',
|
name: 'link',
|
||||||
|
|||||||
Reference in New Issue
Block a user