Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…d script.
  • Loading branch information...
commit c0d993903b789ec0cba040409a19d01bd65ad7e7 1 parent 53f2750
John Resig jeresig authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  build/release.js
2  build/release.js
@@ -86,7 +86,7 @@ function setNextVersion( newVersion ) {
86 86
87 87 } else if ( /^\d+\.\d+\.?(\d*)$/.test( newVersion ) ) {
88 88 newVersion = newVersion.replace( /^(\d+\.\d+\.?)(\d*)$/, function( all, pre, num ) {
89   - return pre + (num ? parseFloat( num ) + 1 : 1) + "pre";
  89 + return pre + (pre.charAt( pre.length - 1 ) !== "." ? "." : "") + (num ? parseFloat( num ) + 1 : 1) + "pre";
90 90 });
91 91
92 92 isFinal = true;

0 comments on commit c0d9939

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