Skip to content

Commit

Permalink
Merge pull request nvm-sh#70 from mdiniz/master
Browse files Browse the repository at this point in the history
Fix wrong full version matching
  • Loading branch information
creationix committed Oct 1, 2011
2 parents ac9a528 + f939adb commit ff3e7d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvm.sh 100644 → 100755
Expand Up @@ -38,7 +38,7 @@ nvm_version()
return
fi
# If it looks like an explicit version, don't do anything funny
if [[ "$PATTERN" == v*.*.* ]]; then
if [[ "$PATTERN" == v?*.?*.?* ]]; then
VERSION="$PATTERN"
fi
# The default version is the current one
Expand Down

0 comments on commit ff3e7d4

Please sign in to comment.