mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +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
|
||||
//it will always appear at the top of the list since the number is so high!
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue