From 80ea36256f8ffc6ad59ea5964c919c36327a909d Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 4 Sep 2013 22:56:11 +0200 Subject: chore(ngdoc): fix version number parsing for doc version switcher --- docs/src/ngdoc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 00aba820..0a5c0ec7 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -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 -- cgit v1.2.3