diff --git a/.github/actions/node/builder/index.js b/.github/actions/node/builder/index.js index 5c3fafabf5..39d2c340aa 100644 --- a/.github/actions/node/builder/index.js +++ b/.github/actions/node/builder/index.js @@ -24848,15 +24848,12 @@ const loadInputs = async () => { return results; }; exports.loadInputs = loadInputs; -const getInputList = (name, ignoreComma) => { +const getInputList = (name) => { const items = core.getInput(name); - if (items === '') { - return []; - } return items - .split(/\r?\n/) - .filter((x) => x) - .reduce((acc, line) => acc.concat(!ignoreComma ? line.split(',').filter((x) => x) : line).map((pat) => pat.trim()), []); + .split(' ') + .map((s) => s.trim()) + .filter((s) => s.length > 0); }; diff --git a/.github/actions/node/src/inputs.ts b/.github/actions/node/src/inputs.ts index eb3db71cda..ae4aa08454 100644 --- a/.github/actions/node/src/inputs.ts +++ b/.github/actions/node/src/inputs.ts @@ -77,17 +77,10 @@ export const loadInputs = async (): Promise => { return results } -const getInputList = (name: string, ignoreComma?: boolean): string[] => { +const getInputList = (name: string): string[] => { const items = core.getInput(name) - if (items === '') { - return [] - } return items - .split(/\r?\n/) - .filter((x) => x) - .reduce( - (acc, line) => - acc.concat(!ignoreComma ? line.split(',').filter((x) => x) : line).map((pat) => pat.trim()), - [], - ) + .split(' ') + .map((s) => s.trim()) + .filter((s) => s.length > 0) }