Fix "terms" translations (closes #2756)

Make them lowercase and split them on any combination of commas and whitespace.
This commit is contained in:
M1dgard
2015-09-05 10:28:06 +02:00
parent 90bc645e44
commit 209b324bc2
+1 -1
View File
@@ -46,7 +46,7 @@ iD.presets.Preset = function(id, preset, fields) {
};
preset.terms = function() {
return preset.t('terms', {'default': ''}).split(',');
return preset.t('terms', {'default': ''}).toLowerCase().split(/\s*,+\s*/);
};
preset.isFallback = function() {