From 6e09d54d0041bf54e69136879a4fa8c8a6210938 Mon Sep 17 00:00:00 2001 From: "junren.chan" Date: Fri, 17 Jan 2025 01:34:32 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Update=20regex=20for=20obsidian=20t?= =?UTF-8?q?ags=20to=20prevent=20URLs=20from=20getting=20matched?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/constants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/constants.ts b/src/common/constants.ts index 61a223b..f2829d9 100644 --- a/src/common/constants.ts +++ b/src/common/constants.ts @@ -1,5 +1,6 @@ // export const OBSIDIAN_TAG_REGEX = /#\S+/g; -export const OBSIDIAN_TAG_REGEX = /#([^\s#]+)/g; +// export const OBSIDIAN_TAG_REGEX = /#([^\s#]+)/g; +export const OBSIDIAN_TAG_REGEX = /(?