Skip to content

Commit

Permalink
Fixed wiki page title lookup for leading underscore
Browse files Browse the repository at this point in the history
Avoid trimming a leading underscore from a key or tag value when coming up with candidate wiki page titles.
  • Loading branch information
1ec5 committed Mar 22, 2024
1 parent 18ef283 commit 055afa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/services/osm_wikibase.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default {
} else {
prefix = type + ':';
}
return prefix + (value ? `${key}=${value}` : key).replace(/_/g, ' ').trim();
return (prefix + (value ? `${key}=${value}` : key).replace(/_/g, ' ')).trim();
},


Expand Down

0 comments on commit 055afa3

Please sign in to comment.