Fixed extra comma on stringified items.
This commit is contained in:
parent
c1589b9758
commit
d17fe1d912
@ -10,7 +10,9 @@ export function grammaticalListString(items, max) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
built += item;
|
built += item;
|
||||||
built += ", ";
|
if (index < items.length - 1) {
|
||||||
|
built += ", ";
|
||||||
|
}
|
||||||
if (index == max - 1) {
|
if (index == max - 1) {
|
||||||
built += "and ";
|
built += "and ";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user