diff options
author | John Resig <jeresig@gmail.com> | 2011-05-02 16:25:20 -0400 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-05-02 16:25:20 -0400 |
commit | c0d993903b789ec0cba040409a19d01bd65ad7e7 (patch) | |
tree | 1111d041d4596fd6bb456d7368e01a189398324e | |
parent | 53f275034a8e7f6041ed14221ef89a1c1d8534d9 (diff) | |
download | jquery-c0d993903b789ec0cba040409a19d01bd65ad7e7.tar.gz jquery-c0d993903b789ec0cba040409a19d01bd65ad7e7.zip |
Fix bug with handling minor releases after major releases in the build script.
-rw-r--r-- | build/release.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/release.js b/build/release.js index 09f917b48..7a42f998b 100644 --- a/build/release.js +++ b/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; |