Skip to content

Commit

Permalink
Show multilingual values in the Name field even for keys with spaces …
Browse files Browse the repository at this point in the history
…or other unexpected characters (re: #8165)
  • Loading branch information
quincylvania committed Nov 6, 2020
1 parent 1a43dbe commit 8147fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui/fields/localized.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 8147fcf

Please sign in to comment.