Skip to content

Commit 80ea362

Browse files
committed
chore(ngdoc): fix version number parsing for doc version switcher
1 parent c0ad2ef commit 80ea362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/ngdoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ exports.ngVersions = function() {
109109
//NON_RC_RELEASE_NUMBER is used to signal the non-RC version for the release and
110110
//it will always appear at the top of the list since the number is so high!
111111
versionMap[baseVersion].push(
112-
version == baseVersion ? NON_RC_RELEASE_NUMBER : parseInt(version.match(/rc(\d+)/)[1]));
112+
version == baseVersion ? NON_RC_RELEASE_NUMBER : parseInt(version.match(/rc\.?(\d+)/)[1]));
113113
};
114114

115115
//flatten the map so that the RC versions occur in a natural sorted order

0 commit comments

Comments
 (0)