Skip to content

Commit

Permalink
Fix semver range regex
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtkowiak committed Oct 4, 2018
1 parent 8294e32 commit d0ba1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dependenciesManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class DependenciesManager {
version: {
type: 'regex',
// Matches all the semver ranges operators, empty strings and `*`.
regex: /[|><= ~-]|\.x|$^|^\*$/,
regex: /[\^|><= ~-]|\.x|^$|^\*$/,
test: 'do not match',
message: 'semver ranges are forbidden, please specify exact version'
}
Expand Down

0 comments on commit d0ba1ba

Please sign in to comment.