From 0cab02a5b2ab29dbd40dff5c1dd3ec0ede08b346 Mon Sep 17 00:00:00 2001 From: connerdouglass Date: Wed, 19 Jun 2024 21:40:04 -0400 Subject: [PATCH] fix: remove usage of Array.fill --- src/command/parser/CommandParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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