From d3a53309b7b6803b1b7e20e6799cbe2d2ab29829 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 7 May 2019 09:32:13 -0400 Subject: [PATCH] Allow uppercase taginfo results for `_ref` tags (closes #6324) --- modules/services/taginfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);