Show multilingual values in the Name field even for keys with spaces or other unexpected characters (re: #8165)

This commit is contained in:
Quincy Morgan
2020-11-06 17:38:09 -05:00
parent 1a43dbe1fe
commit 8147fcfa84

View File

@@ -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)) {