diff --git a/lib/vn-parser.ts b/lib/vn-parser.ts index 2c811fc..cc5d757 100644 --- a/lib/vn-parser.ts +++ b/lib/vn-parser.ts @@ -211,8 +211,8 @@ export function parseScript(text: string): Statement[] { continue; } - const words = line.match(/(?:[^\s"]+|"[^"]*")+/g) || []; - let cmd = words[0]; + const words: string[] = line.match(/(?:[^\s"]+|"[^"]*")+/g) || []; + const cmd = words[0]; if (cmd === 'label') { statements.push({