From 1c917e9865be371fd6cc4bbe64e4ec90fbb820c1 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 28 Sep 2019 15:09:27 -0700 Subject: [PATCH] Ensure method names never have spaces --- modern/src/maki-interpreter/tools/parse-mi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modern/src/maki-interpreter/tools/parse-mi.js b/modern/src/maki-interpreter/tools/parse-mi.js index 5c1a9006..3f5ea550 100644 --- a/modern/src/maki-interpreter/tools/parse-mi.js +++ b/modern/src/maki-interpreter/tools/parse-mi.js @@ -29,7 +29,7 @@ function parseFile(filePath) { if (methodMatch) { const result = methodMatch[1] == null ? "" : methodMatch[1].trim(); const className = methodMatch[2].toLowerCase(); - const name = methodMatch[3]; + const name = methodMatch[3].trim(); const rawArgs = methodMatch[4].split(/\s*,\s*/); const parameters = rawArgs.filter(Boolean).map(rawArg => { const argMatch = /^\s*(.*\s+)?(.*)\s*/.exec(rawArg);