mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +08:00
Merge pull request #533 from iliyaZelenko/patch-4
Remove redundant escape character for regexp
This commit is contained in:
commit
93f83e6279
@ -9,7 +9,7 @@ import { nodeInputRule } from 'tiptap-commands'
|
||||
* ![](image.jpg "Ipsum") -> [, "", "image.jpg", "Ipsum"]
|
||||
* ![Lorem](image.jpg "Ipsum") -> [, "Lorem", "image.jpg", "Ipsum"]
|
||||
*/
|
||||
const IMAGE_INPUT_REGEX = /!\[(.+|:?)\]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/
|
||||
const IMAGE_INPUT_REGEX = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/
|
||||
|
||||
export default class Image extends Node {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user