Merge pull request #533 from iliyaZelenko/patch-4

Remove redundant escape character for regexp
This commit is contained in:
Philipp Kühn
2019-12-02 22:22:15 +01:00
committed by GitHub

View File

@@ -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 {