From 8f82caf55475b1a1e75a5a4c529f930c21b91c29 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 9 Oct 2017 14:36:35 -0400 Subject: [PATCH] Adjust hashtagRegex: allow '_', change * (0 or more) to + (1 or more) --- modules/ui/commit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/commit.js b/modules/ui/commit.js index f46db6c41..666043413 100644 --- a/modules/ui/commit.js +++ b/modules/ui/commit.js @@ -26,9 +26,9 @@ var readOnlyTags = [ /^locale$/ ]; -// treat all punctuation as hashtag delimiters +// treat all punctuation 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) {