Skip to content

Commit 789059c

Browse files
fix: user flags parser (#19)
## πŸ’Œ Description <!-- Add a more detailed description of the changes if needed. --> ## πŸ”— Related issue <!-- If your PR refers to a related issue, link it here. --> Fixes: #13 ## πŸ—οΈ Type of change <!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> - [ ] πŸ“š Examples/docs/tutorials - [x] πŸ› Bug fix (non-breaking change which fixes an issue) - [ ] πŸ₯‚ Improvement (non-breaking change which improves an existing feature) - [ ] πŸš€ New feature (non-breaking change which adds functionality) - [ ] πŸ’₯ Breaking change (fix or feature that would cause existing functionality to change) - [ ] 🚨 Security fix - [ ] ⬆️ Dependencies update ## βœ… Checklist <!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> - [x] I've read the [`Code of Conduct`](https://github.com/raven-actions/actionlint/blob/main/.github/CODE_OF_CONDUCT.md) document. - [x] I've read the [`Contributing`](https://github.com/raven-actions/actionlint/blob/main/.github/CONTRIBUTING.md) guide.
1 parent 43d299a commit 789059c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

β€Žaction.ymlβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,10 @@ runs:
357357
358358
// set user tool flags
359359
if(INPUT_FLAGS !== '') {
360-
const userFlags = INPUT_FLAGS.split(' ').map(s => s.trim())
361-
userFlags.forEach(flag => { toolFlags.push(flag) })
360+
const userFlags = INPUT_FLAGS.match(/(?:[^\s"]+|"[^"]*")+/g)
361+
userFlags.forEach(flag => {
362+
toolFlags.push(flag.trim())
363+
})
362364
}
363365
364366
// set files

0 commit comments

Comments
Β (0)