Skip to content

Commit

Permalink
fix: #12009, check if suggested/current versions are valid
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Sep 15, 2023
1 parent f9323de commit 7ca37bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/upgrade-plugins.js
Expand Up @@ -106,7 +106,7 @@ async function checkPlugins() {
current = plugins[suggestObj.package];
suggested = suggestObj.version;

if (suggestObj.code === 'match-found' && semver.gt(suggested, current)) {
if (suggestObj.code === 'match-found' && semver.valid(current) && semver.valid(suggested) && semver.gt(suggested, current)) {
return {
name: suggestObj.package,
current: current,
Expand Down

0 comments on commit 7ca37bd

Please sign in to comment.