mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 03:41:33 +00:00
Show multilingual values in the Name field even for keys with spaces or other unexpected characters (re: #8165)
This commit is contained in:
@@ -125,7 +125,7 @@ export function uiFieldLocalized(field, context) {
|
||||
var existingLangs = new Set(existingLangsOrdered.filter(Boolean));
|
||||
|
||||
for (var k in tags) {
|
||||
var m = k.match(/^(.*):([a-zA-Z_-]+)$/);
|
||||
var m = k.match(/^(.*):(.+)$/);
|
||||
if (m && m[1] === field.key && m[2]) {
|
||||
var item = { lang: m[2], value: tags[k] };
|
||||
if (existingLangs.has(item.lang)) {
|
||||
|
||||
Reference in New Issue
Block a user