Skip to content

Commit

Permalink
fix: .* can be used multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 26, 2019
1 parent b97708d commit d03bb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class Option {
this.config = Object.assign({}, config)

// You may use cli.option('--env.* [value]', 'desc') to denote a dot-nested option
rawName = rawName.replace(/\.\*/, '')
rawName = rawName.replace(/\.\*/g, '')

this.negated = false
this.names = removeBrackets(rawName)
Expand Down

0 comments on commit d03bb94

Please sign in to comment.