Skip to content

Commit

Permalink
Fix switch-to-preview npm error
Browse files Browse the repository at this point in the history
  • Loading branch information
yekalkan committed Aug 24, 2020
1 parent 00a0eac commit 4d45501
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private static bool IsAngularProject(string fileDirectory)
}
else
{
if (!switchToStable && SemanticVersion.Parse(currentVersion).IsPrerelease)
if (!switchToStable && SemanticVersion.Parse(currentVersion.TrimStart('^').TrimStart('~')).IsPrerelease)
{
version = await GetLatestVersion(package, true);
}
Expand Down

0 comments on commit 4d45501

Please sign in to comment.