Fix: a better way to draw list?

This commit is contained in:
eight 2018-09-26 11:40:04 +08:00
parent a849fd6dda
commit 79833d8bba

View File

@ -49,8 +49,8 @@ var usercss = (() => {
}); });
} }
function drawList(chars) { function drawList(items) {
return chars.map(c => c === '"' ? "'\"'" : `"${c}"`).join(', '); return items.map(i => i.length === 1 ? JSON.stringify(i) : i).join(', ');
} }
/** /**