From fb22f01b3084b87f2d5b5c92f1a68b9cc1af899c Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Fri, 21 Feb 2025 18:48:42 +0100 Subject: [PATCH] =?UTF-8?q?allow=20=EF=BC=83=20(full=20width=20number=20si?= =?UTF-8?q?gn)=20as=20alternative=20#=20sign=20for=20hashtags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this appears to be somewhat common in some asian scripts, resulting in unrecognized hashtags or superfluous "#" in `hashtags` changeset tag (e.g. https://stats.now.ohsome.org/dashboard#hashtag=%25EF%25BC%2583missingmaps&start=2007-02-20T23:00:00Z&end=2025-02-21T22:59:59Z&interval=P1M&countries=&topics=). --- modules/ui/commit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/commit.js b/modules/ui/commit.js index a780a2056..7508a4be9 100644 --- a/modules/ui/commit.js +++ b/modules/ui/commit.js @@ -32,7 +32,7 @@ var readOnlyTags = [ // treat most punctuation (except -, _, +, &) as hashtag delimiters - #4398 // from https://stackoverflow.com/a/25575009 -var hashtagRegex = /(#[^\u2000-\u206F\u2E00-\u2E7F\s\\'!"#$%()*,.\/:;<=>?@\[\]^`{|}~]+)/g; +var hashtagRegex = /([##][^\u2000-\u206F\u2E00-\u2E7F\s\\'!"#$%()*,.\/:;<=>?@\[\]^`{|}~]+)/g; export function uiCommit(context) {