mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
Fix bug with handling minor releases after major releases in the build script.
This commit is contained in:
parent
53f275034a
commit
c0d993903b
@ -86,7 +86,7 @@ function setNextVersion( newVersion ) {
|
|||||||
|
|
||||||
} else if ( /^\d+\.\d+\.?(\d*)$/.test( newVersion ) ) {
|
} else if ( /^\d+\.\d+\.?(\d*)$/.test( newVersion ) ) {
|
||||||
newVersion = newVersion.replace( /^(\d+\.\d+\.?)(\d*)$/, function( all, pre, num ) {
|
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;
|
isFinal = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user