From 8147fcfa84e825147e0fe7e211618c8d11259b17 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Fri, 6 Nov 2020 17:38:09 -0500 Subject: [PATCH] Show multilingual values in the Name field even for keys with spaces or other unexpected characters (re: #8165) --- modules/ui/fields/localized.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/fields/localized.js b/modules/ui/fields/localized.js index 9126aad8f..89639f4d1 100644 --- a/modules/ui/fields/localized.js +++ b/modules/ui/fields/localized.js @@ -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)) {