From 49d2c2701d6b7d104526d4153f7c22deba30ded4 Mon Sep 17 00:00:00 2001 From: MarsAuthority Date: Sat, 7 Dec 2024 16:41:09 +0800 Subject: [PATCH] Update handle-power-tag.ts Support No English Tag --- src/services/handle-power-tag.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/handle-power-tag.ts b/src/services/handle-power-tag.ts index 79b991b..d595aaf 100644 --- a/src/services/handle-power-tag.ts +++ b/src/services/handle-power-tag.ts @@ -3,7 +3,7 @@ import { handleDynamicVariables } from './handle-dynamic-variables' export const handlePowerTag = async (uuid: string) => { const blk = await logseq.Editor.getBlock(uuid) if (!blk) return - const tagMatch = /#(?:\[\[(.*?)\]\]|(\w+))/.exec(blk.content) + const tagMatch = /#(?:\[\[(.*?)\]\]|(.+))/.exec(blk.content) if (!tagMatch) return // Check whether tag is a PowerTag