Skip to content

Commit

Permalink
Separate run.node.versions with commas
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 6, 2019
1 parent e6a8798 commit feef036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/run/runners/node/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getNodeVersions = async function({ versions }) {
return
}

const versionsA = versions.split(WHITESPACE_REGEXP)
const versionsA = versions.split(SEPARATOR_REGEXP)

const [versionsB, allowedVersions] = await Promise.all([
getFullVersions(versionsA),
Expand All @@ -20,7 +20,7 @@ export const getNodeVersions = async function({ versions }) {
return versionsB
}

const WHITESPACE_REGEXP = /\s+/u
const SEPARATOR_REGEXP = /\s*,\s*/u

// We retrieve the full Node versions for validation purpose and for `--info`,
// but not for the command id/title
Expand Down

0 comments on commit feef036

Please sign in to comment.