From 48be08bb144d8c2488752ade935d5841bb846ab2 Mon Sep 17 00:00:00 2001 From: Cesar Augusto Date: Mon, 28 Oct 2024 22:28:50 -0300 Subject: [PATCH] Use lookbehind assertion on Tag regex Fixes #7 --- src/extensions/TagExtension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions/TagExtension.ts b/src/extensions/TagExtension.ts index 26d06ad..f5d931b 100644 --- a/src/extensions/TagExtension.ts +++ b/src/extensions/TagExtension.ts @@ -5,8 +5,8 @@ export interface TagAttributes { tag: string } -const REGEX_TAG_PASTE = /(#[^\W]+)/g -const REGEX_TAG_INPUT = /(#[^\W]+)$/g +const REGEX_TAG_PASTE = /(?