diff --git a/lib/dependenciesManager.js b/lib/dependenciesManager.js index a83332ef..31a495c6 100644 --- a/lib/dependenciesManager.js +++ b/lib/dependenciesManager.js @@ -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' }