From 79c5472c11ef0544e2d48a6a1c6b760eadc587c9 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Tue, 1 Feb 2022 11:02:30 -0600 Subject: [PATCH] Match tags with hash --- common/util/parse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/util/parse.ts b/common/util/parse.ts index 1499a5c2..10876b12 100644 --- a/common/util/parse.ts +++ b/common/util/parse.ts @@ -21,7 +21,7 @@ export function parseTags(text: string) { export function parseWordsAsTags(text: string) { const taggedText = text .split(/\s+/) - .map((tag) => `#${tag}`) + .map((tag) => (tag.startsWith('#') ? tag : `#${tag}`)) .join(' ') return parseTags(taggedText) }