Skip to content

Commit

Permalink
fix: user flags parser
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszPorowski committed Nov 13, 2023
1 parent 43d299a commit 5557b9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,10 @@ runs:
// set user tool flags
if(INPUT_FLAGS !== '') {
const userFlags = INPUT_FLAGS.split(' ').map(s => s.trim())
userFlags.forEach(flag => { toolFlags.push(flag) })
const userFlags = INPUT_FLAGS.match(/(?:[^\s"]+|"[^"]*")+/g)
userFlags.forEach(flag => {
toolFlags.push(flag.trim())
})
}
// set files
Expand Down

0 comments on commit 5557b9e

Please sign in to comment.