File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ class GitHubApi{
156156 json . items . forEach ( repo => {
157157 let data = {
158158 official : repo . owner . login === 'AI-Tournaments' ,
159- name : repo . full_name . replace ( / .* \/ | - A r e n a / g, '' ) ,
160159 raw_url : null ,
161160 default : 'https://raw.githubusercontent.com/' + repo . full_name + '/' + repo . default_branch + '/' ,
162161 html_url : repo . html_url ,
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ function a(){
405405 let cssStar = getComputedStyle ( document . documentElement ) . getPropertyValue ( '--github-stars' ) . trim ( ) ;
406406 cssStar = cssStar . substring ( 1 , cssStar . length - 1 ) ;
407407 let option = document . createElement ( 'option' ) ;
408- option . innerHTML = repo . full_name . replace ( / .* \/ | - A r e n a / g, '' ) + ' ' + cssStar + repo . stars ;
408+ option . innerHTML = repo . full_name . replace ( / .* \/ A r e n a - / g, '' ) + ' ' + cssStar + repo . stars ;
409409 option . dataset . stars = repo . stars ;
410410 option . value = 'https://' + repo . owner . login + '.github.io/' + repo . name ;
411411 if ( option . value !== _replayData . header . defaultReplay ) {
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ function a(){
230230 } )
231231 officialRepos . slice ( 0 , amount ) . forEach ( repo => {
232232 let item = document . createElement ( 'div' ) ;
233- item . innerHTML = repo . name . replace ( '- Arena' , '' )
233+ item . innerHTML = repo . full_name . replace ( / . * \/ A r e n a - / g , '' )
234234 item . dataset . stars = repo . stars ;
235235 item . dataset . full_name = repo . full_name ;
236236 item . classList . add ( 'clickable' ) ;
You can’t perform that action at this time.
0 commit comments