Minor fix, though this could hurt later

This commit is contained in:
Ozzie Gooen 2020-04-18 18:54:30 +01:00
parent 2e5f285a9e
commit b14f1244c2

View File

@ -2,7 +2,7 @@
// "3 4 5 3 2 1 " -> "[3,4,5,3,2,1]"" // "3 4 5 3 2 1 " -> "[3,4,5,3,2,1]""
let formatMessyArray = str => { let formatMessyArray = str => {
let split = Js.String.splitByRe([%re "/\\n|\\r|\\s/"], str); let split = Js.String.splitByRe([%re "/\\n|\\r|\\s/"], str);
if (E.A.length(split) > 6) { if (E.A.length(split) > 20) {
let inner = split |> Js.Array.joinWith(","); let inner = split |> Js.Array.joinWith(",");
{j|[$inner]|j}; {j|[$inner]|j};
} else { } else {