aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorIgor Minar2013-09-04 22:56:11 +0200
committerIgor Minar2013-09-04 22:56:11 +0200
commit80ea36256f8ffc6ad59ea5964c919c36327a909d (patch)
treea58ca871efad60b91dcf23c81b587ebbf6dc45b5 /docs/src
parentc0ad2efb24e4fffff6cb503ca821fe7e0bd4618b (diff)
downloadangular.js-80ea36256f8ffc6ad59ea5964c919c36327a909d.tar.bz2
chore(ngdoc): fix version number parsing for doc version switcher
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/ngdoc.js2
1 files changed, 1 insertions, 1 deletions
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