From 0f153d7d55bfa862a78b7f3bd64b948fdb1efc3b Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 11 Sep 2017 12:09:58 -0400 Subject: [PATCH] Ignore URLish fragments when detecting hashtags in changeset comment (closes #4289) --- modules/ui/commit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ui/commit.js b/modules/ui/commit.js index 30b528bd5..0492e3a37 100644 --- a/modules/ui/commit.js +++ b/modules/ui/commit.js @@ -292,7 +292,9 @@ export function uiCommit(context) { // Extract hashtags from `comment` function commentTags() { - return tags.comment.match(/#[\w-]+/g); + return tags.comment + .replace(/http\S*/g, '') // drop anything that looks like a URL - #4289 + .match(/#[\w-]+/g); } // Extract and clean hashtags from `hashtags`