File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
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- {{normalizeVersionDisplay( version) }}
39+ {{version}}
4040 </ a >
4141 </ ul >
4242 </ article >
@@ -54,18 +54,15 @@ <h3 class="panel-title">
5454 . controller ( 'docVersions' , function ( $scope , $http ) {
5555 $scope . loading = true ;
5656
57- $scope . normalizeVersionDisplay = function ( v ) {
58- return v . replace ( / ^ v / , '' ) ;
59- } ;
60-
6157 $scope . normalizeVersion = function ( v ) {
62- return v . replace ( / ^ v / , '' ) . replace ( / ^ r u s t - / , '' ) ;
58+ return v . replace ( / ^ r u s t - / , '' ) ;
6359 } ;
6460
6561 $scope . versionOrder = function ( v ) {
6662 if ( v === 'master' ) { return Infinity ; }
6763 if ( v === 'stable' ) { return Number . MAX_VALUE ; }
6864 if ( v === 'beta' ) { return Number . MAX_VALUE - 1 ; }
65+ if ( v === 'pre-1.29.0' ) { return Number . MIN_VALUE ; }
6966
7067 return $scope . normalizeVersion ( v )
7168 . split ( '.' )
You can’t perform that action at this time.
0 commit comments