mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Ignore URLish fragments when detecting hashtags in changeset comment
(closes #4289)
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user