I have the following line which splits correctly but produces a duplicate for "abc"
console.log("squadName, \"abc\"".split(/,\s*(?=([^"]*"[^"]*")*[^"]*$)/))
The expected output should be the same as that of
console.log("squadName, \"abc\"".split(/,\s*/))
However, I'm trying to ignore commas within quotes, as explained in A regex to match a comma that isn't surrounded by quotes