Skip to content
Browse files

Fix bug with handling minor releases after major releases in the buil…

…d script.
  • Loading branch information...
1 parent 53f2750 commit c0d993903b789ec0cba040409a19d01bd65ad7e7 @jeresig jeresig committed May 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 build/release.js
View
2 build/release.js
@@ -86,7 +86,7 @@ function setNextVersion( newVersion ) {
} else if ( /^\d+\.\d+\.?(\d*)$/.test( newVersion ) ) {
newVersion = newVersion.replace( /^(\d+\.\d+\.?)(\d*)$/, function( all, pre, num ) {
- return pre + (num ? parseFloat( num ) + 1 : 1) + "pre";
+ return pre + (pre.charAt( pre.length - 1 ) !== "." ? "." : "") + (num ? parseFloat( num ) + 1 : 1) + "pre";
});
isFinal = true;

0 comments on commit c0d9939

Please sign in to comment.
Something went wrong with that request. Please try again.