File tree 1 file changed +3
-6
lines changed
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">
36
36
< ul class ="list-group ">
37
37
< a class ="list-group-item " ng-repeat ="version in data | orderBy:versionOrder:true "
38
38
href ="./{{version}}/index.html ">
39
- {{normalizeVersionDisplay( version) }}
39
+ {{version}}
40
40
</ a >
41
41
</ ul >
42
42
</ article >
@@ -54,18 +54,15 @@ <h3 class="panel-title">
54
54
. controller ( 'docVersions' , function ( $scope , $http ) {
55
55
$scope . loading = true ;
56
56
57
- $scope . normalizeVersionDisplay = function ( v ) {
58
- return v . replace ( / ^ v / , '' ) ;
59
- } ;
60
-
61
57
$scope . normalizeVersion = function ( v ) {
62
- return v . replace ( / ^ v / , '' ) . replace ( / ^ r u s t - / , '' ) ;
58
+ return v . replace ( / ^ r u s t - / , '' ) ;
63
59
} ;
64
60
65
61
$scope . versionOrder = function ( v ) {
66
62
if ( v === 'master' ) { return Infinity ; }
67
63
if ( v === 'stable' ) { return Number . MAX_VALUE ; }
68
64
if ( v === 'beta' ) { return Number . MAX_VALUE - 1 ; }
65
+ if ( v === 'pre-1.29.0' ) { return Number . MIN_VALUE ; }
69
66
70
67
return $scope . normalizeVersion ( v )
71
68
. split ( '.' )
You can’t perform that action at this time.
0 commit comments