Skip to content

Commit

Permalink
fix: remove usage of Array.fill
Browse files Browse the repository at this point in the history
  • Loading branch information
connerdouglass committed Jun 20, 2024
1 parent 3f8c5d9 commit 0cab02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/parser/CommandParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cab02a

Please sign in to comment.