From c080fb8246d71ad5e366ae6931b06db3ff86233b Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Tue, 5 Dec 2023 19:05:32 +0300 Subject: [PATCH] fix: avoid polynomial regex on flags parsing --- src/main/js/processor/deps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/js/processor/deps.js b/src/main/js/processor/deps.js index a26218c..dca9e89 100644 --- a/src/main/js/processor/deps.js +++ b/src/main/js/processor/deps.js @@ -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 : []