1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 11:37:20 +00:00

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

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;