Fix name field for suffixed ISO 639-1 codes (fixes #1628)

This commit is contained in:
John Firebaugh
2013-07-22 10:40:21 -07:00
parent 26cab408e8
commit 49b920e5b3
+1 -1
View File
@@ -202,7 +202,7 @@ iD.ui.preset.localized = function(field, context) {
var postfixed = [];
for (var i in tags) {
var m = i.match(new RegExp(field.key + ':([a-z]+)'));
var m = i.match(new RegExp(field.key + ':([a-zA-Z_-]+)$'));
if (m && m[1]) {
postfixed.push({ lang: m[1], value: tags[i]});
}