File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -112,31 +112,31 @@ def self.aliases
112112 {
113113 'angular' => 'ng' ,
114114 'angular.js' => 'ng' ,
115- 'backbone.js ' => 'bb' ,
116- 'c++ ' => 'cpp ' ,
115+ 'backbone' => 'bb' ,
116+ 'cpp ' => 'c++ ' ,
117117 'coffeescript' => 'cs' ,
118118 'crystal' => 'cr' ,
119119 'elixir' => 'ex' ,
120120 'javascript' => 'js' ,
121121 'julia' => 'jl' ,
122122 'jquery' => '$' ,
123- 'knockout.js ' => 'ko' ,
123+ 'knockout' => 'ko' ,
124124 'kubernetes' => 'k8s' ,
125125 'less' => 'ls' ,
126126 'lodash' => '_' ,
127- 'löve ' => 'love ' ,
127+ 'love ' => 'löve ' ,
128128 'marionette' => 'mn' ,
129129 'markdown' => 'md' ,
130130 'matplotlib' => 'mpl' ,
131131 'modernizr' => 'mdr' ,
132- 'moment.js ' => 'mt' ,
132+ 'moment' => 'mt' ,
133133 'openjdk' => 'java' ,
134134 'nginx' => 'ngx' ,
135135 'numpy' => 'np' ,
136136 'pandas' => 'pd' ,
137137 'postgresql' => 'pg' ,
138138 'python' => 'py' ,
139- 'ruby.on. rails' => 'ror' ,
139+ 'rails' => 'ror' ,
140140 'ruby' => 'rb' ,
141141 'rust' => 'rs' ,
142142 'sass' => 'scss' ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def as_json
2020 if doc . options [ :attribution ] . is_a? ( String )
2121 json [ :attribution ] = doc . options [ :attribution ] . strip
2222 end
23- json [ :alias ] = Docs . aliases [ doc . slug ]
23+ json [ :alias ] = Docs . aliases [ doc . slug [ /^[^~]+/ , 0 ] ]
2424 result << json
2525 end
2626 end
You can’t perform that action at this time.
0 commit comments