Skip to content
Permalink
Browse files

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

…d script.
  • Loading branch information...
jeresig committed May 2, 2011
1 parent 53f2750 commit c0d993903b789ec0cba040409a19d01bd65ad7e7
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.
You can’t perform that action at this time.