From 6c08057bb229135abc6f5244d2010569ef5d3561 Mon Sep 17 00:00:00 2001 From: Joe Vallender Date: Mon, 2 Aug 2021 16:08:03 +0700 Subject: [PATCH] fix: Apply the correct regex for code extension in markPasteRule (#1671) --- packages/extension-code/src/code.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/extension-code/src/code.ts b/packages/extension-code/src/code.ts index ddc9cfa0e..871066122 100644 --- a/packages/extension-code/src/code.ts +++ b/packages/extension-code/src/code.ts @@ -78,7 +78,7 @@ export const Code = Mark.create({ addPasteRules() { return [ - markPasteRule(inputRegex, this.type), + markPasteRule(pasteRegex, this.type), ] }, })