Fix handling of whitespace in $tw.utils.stringifyList

Fixes #7226
This commit is contained in:
jeremy@jermolene.com 2023-01-23 17:16:51 +00:00
parent fb8e5d1417
commit 3d0ec5b1bd
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ $tw.utils.stringifyList = function(value) {
var result = new Array(value.length);
for(var t=0, l=value.length; t<l; t++) {
var entry = value[t] || "";
if(entry.indexOf(" ") !== -1) {
if(entry.match(/[\s\xA0]/mg)) {
result[t] = "[[" + entry + "]]";
} else {
result[t] = entry;