mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-13 09:13:12 +00:00
chore(ngdoc): fix version number parsing for doc version switcher
This commit is contained in:
parent
c0ad2efb24
commit
80ea36256f
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ exports.ngVersions = function() {
|
||||||
//NON_RC_RELEASE_NUMBER is used to signal the non-RC version for the release and
|
//NON_RC_RELEASE_NUMBER is used to signal the non-RC version for the release and
|
||||||
//it will always appear at the top of the list since the number is so high!
|
//it will always appear at the top of the list since the number is so high!
|
||||||
versionMap[baseVersion].push(
|
versionMap[baseVersion].push(
|
||||||
version == baseVersion ? NON_RC_RELEASE_NUMBER : parseInt(version.match(/rc(\d+)/)[1]));
|
version == baseVersion ? NON_RC_RELEASE_NUMBER : parseInt(version.match(/rc\.?(\d+)/)[1]));
|
||||||
};
|
};
|
||||||
|
|
||||||
//flatten the map so that the RC versions occur in a natural sorted order
|
//flatten the map so that the RC versions occur in a natural sorted order
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue