Allow uppercase taginfo results for _ref tags

(closes #6324)
This commit is contained in:
Bryan Housel
2019-05-07 09:32:13 -04:00
parent 966f5c3586
commit d3a53309b7
+2 -2
View File
@@ -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);