Fix: a better way to draw list?
This commit is contained in:
parent
a849fd6dda
commit
79833d8bba
|
@ -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(', ');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user