diff --git a/modules/services/taginfo.js b/modules/services/taginfo.js index 099b864a7..7bcca4237 100644 --- a/modules/services/taginfo.js +++ b/modules/services/taginfo.js @@ -299,8 +299,8 @@ export default { // A few OSM keys expect values to contain uppercase values (see #3377). // This is not an exhaustive list (e.g. `name` also has uppercase values) // but these are the fields where taginfo value lookup is most useful. - var re = /network|taxon|genus|species|brand|grape_variety|royal_cypher|listed_status|booth|rating|stars|:output|_hours|_times|manufacturer/; - var allowUpperCase = (params.key.match(re) !== null); + var re = /network|taxon|genus|species|brand|grape_variety|royal_cypher|listed_status|booth|rating|stars|:output|_hours|_times|_ref|manufacturer/; + var allowUpperCase = re.test(params.key); var f = filterValues(allowUpperCase); var result = d.data.filter(f).map(valKeyDescription);