diff --git a/src/command/parser/CommandParser.ts b/src/command/parser/CommandParser.ts index 1dcc4d0..b7317ea 100755 --- a/src/command/parser/CommandParser.ts +++ b/src/command/parser/CommandParser.ts @@ -95,7 +95,7 @@ export class CommandParser { // Repeat the correct number of optional endings const optional_ending: string = Array(optional_count) - .fill(')?') + .map(() => ')?') .join(''); // Join the parts to a regex pattern