Skip to content

Commit

Permalink
fix: avoid polynomial regex on flags parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 5, 2023
1 parent 3f67b9f commit c080fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/js/processor/deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const subsWorkspace = (decl, actual) => {

export const topo = async ({flags = {}, cwd} = {}) => {
const ignore = typeof flags.ignore === 'string'
? flags.ignore.split(/\s*,\s*/)
? flags.ignore.split(',').map(c => c.trim())
: Array.isArray(flags.ignore)
? flags.ignore
: []
Expand Down

0 comments on commit c080fb8

Please sign in to comment.