File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ <h3 class="panel-title">
3636 < ul class ="list-group ">
3737 < a class ="list-group-item " ng-repeat ="version in data | orderBy:versionOrder:true "
3838 href ="./{{version}}/index.html ">
39- {{normalizeVersion (version)}}
39+ {{normalizeVersionDisplay (version)}}
4040 </ a >
4141 </ ul >
4242 </ article >
@@ -54,10 +54,14 @@ <h3 class="panel-title">
5454 . controller ( 'docVersions' , function ( $scope , $http ) {
5555 $scope . loading = true ;
5656
57- $scope . normalizeVersion = function ( v ) {
57+ $scope . normalizeVersionDisplay = function ( v ) {
5858 return v . replace ( / ^ v / , '' ) ;
5959 } ;
6060
61+ $scope . normalizeVersion = function ( v ) {
62+ return v . replace ( / ^ v / , '' ) . replace ( / ^ r u s t - / , '' ) ;
63+ } ;
64+
6165 $scope . versionOrder = function ( v ) {
6266 if ( v === 'master' ) { return Infinity ; }
6367 if ( v === 'current' ) { return Number . MAX_VALUE ; }
You can’t perform that action at this time.
0 commit comments