feat: do not apply friendly name to patch names

This commit is contained in:
oSumAtrIX 2023-07-10 20:29:09 +02:00
parent f8c4c98353
commit 3137e60587
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,7 @@
>
<div class="things">
<div class="title">
<h3>{friendlyName(patch.name)}</h3>
<h3>{patch.name}</h3>
</div>
{#if hasPatchOptions}
<img id="arrow" src="/icons/arrow.svg" alt="dropdown" />

View File

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