Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow chocolatey to include beta versions during installation

  • Loading branch information...
commit ed1d0a2ccd5c5c8365d5786283de3348c4992d3e 1 parent bd3eefe
@ferventcoder authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/functions/Chocolatey-NuGet.ps1
View
2  src/functions/Chocolatey-NuGet.ps1
@@ -37,7 +37,7 @@ $h1
$installedPackageName = $pkgNameMatches -replace "'", "" -replace " ", ""
}
- $regex = [regex]"[0-9.]+[[)]?'"
+ $regex = [regex]"[\d\.]+[\-\w]*[[)]?'"
$pkgVersionMatches = $regex.Matches($line) | select -First 1
if ($pkgVersionMatches -ne $null) {
$installedPackageVersion = $pkgVersionMatches -replace '\)', '' -replace "'", "" -replace " ", ""
Please sign in to comment.
Something went wrong with that request. Please try again.