Skip to content

Commit 8eda2fa

Browse files
committed
Official arena name now begins with "Arena-".
1 parent ce167fd commit 8eda2fa

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

GitHubApi.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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(/.*\/|-Arena/g, ''),
160159
raw_url: null,
161160
default: 'https://raw.githubusercontent.com/'+repo.full_name+'/'+repo.default_branch+'/',
162161
html_url: repo.html_url,

Replay/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(/.*\/|-Arena/g, '') + ' ' + cssStar + repo.stars;
408+
option.innerHTML = repo.full_name.replace(/.*\/Arena-/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){

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(/.*\/Arena-/g,'')
234234
item.dataset.stars = repo.stars;
235235
item.dataset.full_name = repo.full_name;
236236
item.classList.add('clickable');

0 commit comments

Comments
 (0)