mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Fix name field for suffixed ISO 639-1 codes (fixes #1628)
This commit is contained in:
@@ -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]});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user