Skip to content

Commit

Permalink
fix: user flags parser (#19)
Browse files Browse the repository at this point in the history
## πŸ’Œ 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.
  • Loading branch information
DariuszPorowski authored Nov 13, 2023
1 parent 43d299a commit 789059c
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 789059c

Please sign in to comment.