mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-16 12:08:43 +08:00
chore(ngdoc): fix version number parsing for doc version switcher
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user