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">
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
- {{normalizeVersion (version)}}
39
+ {{normalizeVersionDisplay (version)}}
40
40
</ a >
41
41
</ ul >
42
42
</ article >
@@ -54,10 +54,14 @@ <h3 class="panel-title">
54
54
. controller ( 'docVersions' , function ( $scope , $http ) {
55
55
$scope . loading = true ;
56
56
57
- $scope . normalizeVersion = function ( v ) {
57
+ $scope . normalizeVersionDisplay = function ( v ) {
58
58
return v . replace ( / ^ v / , '' ) ;
59
59
} ;
60
60
61
+ $scope . normalizeVersion = function ( v ) {
62
+ return v . replace ( / ^ v / , '' ) . replace ( / ^ r u s t - / , '' ) ;
63
+ } ;
64
+
61
65
$scope . versionOrder = function ( v ) {
62
66
if ( v === 'master' ) { return Infinity ; }
63
67
if ( v === 'current' ) { return Number . MAX_VALUE ; }
You can’t perform that action at this time.
0 commit comments