Ignore URLish fragments when detecting hashtags in changeset comment

(closes #4289)
This commit is contained in:
Bryan Housel
2017-09-11 12:09:58 -04:00
parent 51072f6799
commit 0f153d7d55
+3 -1
View File
@@ -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`