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
commit 93f83e6279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {