diff options
Diffstat (limited to 'tools/gencode.js')
-rw-r--r-- | tools/gencode.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gencode.js b/tools/gencode.js index e2522e7..39c87bd 100644 --- a/tools/gencode.js +++ b/tools/gencode.js @@ -30,7 +30,9 @@ for (let line of fs.readFileSync("events.txt", "utf-8").split("\n")) { continue if (line === "EOF") break - line = line.split(" ") + // line = line.split(" ") + // split by spaces unless those spaces are within double quotes. + line = line.match(/(?:[^\s"]+|"[^"]*")+/g) switch (line[0]) { case "CARD": if (first++) { |