From fd990286e7fa452e94747ffcfd661a1ff5076576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F?= Date: Thu, 28 Nov 2019 19:52:35 +0200 Subject: [PATCH] Update Image.js --- packages/tiptap-extensions/src/nodes/Image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tiptap-extensions/src/nodes/Image.js b/packages/tiptap-extensions/src/nodes/Image.js index 2b3bdcf1c..7cda3ca01 100644 --- a/packages/tiptap-extensions/src/nodes/Image.js +++ b/packages/tiptap-extensions/src/nodes/Image.js @@ -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 {