fix: Broken repository links in contributors

This commit is contained in:
Ushie 2024-09-07 05:42:35 +03:00
parent 27fabe2a79
commit 814016473e
No known key found for this signature in database
GPG Key ID: B3AAD18842E34632
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
on:click={() => (expanded = !expanded)}
on:keypress={() => (expanded = !expanded)}
>
<a href="https://github.com/{repo}" rel="noreferrer" target="_blank" on:click|stopPropagation>
<a href="https://github.com/ReVanced/{repo}" rel="noreferrer" target="_blank" on:click|stopPropagation>
<h4>{repo_name}</h4>
</a>
<img

View File

@ -1,7 +1,7 @@
export function friendlyName(text: string): string {
return text
.replace(/-/g, ' ')
.replace(/revanced\/revanced/g, 'ReVanced')
.replace(/\brevanced\b/g, 'ReVanced')
.replace(/\bcli\b/g, 'CLI')
.replace(/api/g, 'API')
.replace(/(?:^|\s)\S/g, (x: string) => x.toUpperCase());