1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-31 15:16:18 +00:00

Further fix to whitespace handling in $tw.utils.stringifyList

Fixes typo in 3d0ec5b1bd

See 3d0ec5b1bd (commitcomment-97804850)
This commit is contained in:
jeremy@jermolene.com 2023-01-23 19:36:13 +00:00
parent 3d0ec5b1bd
commit 4e5c957e97

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.match(/[\s\xA0]/mg)) {
if(entry.match(/[^\S\xA0]/mg)) {
result[t] = "[[" + entry + "]]";
} else {
result[t] = entry;