mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-11 13:46:17 +00:00
feat: do not apply friendly name to patch names
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
>
|
>
|
||||||
<div class="things">
|
<div class="things">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h3>{friendlyName(patch.name)}</h3>
|
<h3>{patch.name}</h3>
|
||||||
</div>
|
</div>
|
||||||
{#if hasPatchOptions}
|
{#if hasPatchOptions}
|
||||||
<img id="arrow" src="/icons/arrow.svg" alt="dropdown" />
|
<img id="arrow" src="/icons/arrow.svg" alt="dropdown" />
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ export function friendlyName(text: string): string {
|
|||||||
return text
|
return text
|
||||||
.replace(/-/g, ' ')
|
.replace(/-/g, ' ')
|
||||||
.replace(/revanced\/revanced/g, 'ReVanced')
|
.replace(/revanced\/revanced/g, 'ReVanced')
|
||||||
.replace(/revanced/g, 'ReVanced')
|
|
||||||
.replace(/\bcli\b/g, 'CLI')
|
.replace(/\bcli\b/g, 'CLI')
|
||||||
.replace(/api/g, 'API')
|
.replace(/api/g, 'API')
|
||||||
.replace(/(?:^|\s)\S/g, (x: string) => x.toUpperCase());
|
.replace(/(?:^|\s)\S/g, (x: string) => x.toUpperCase());
|
||||||
|
|||||||
Reference in New Issue
Block a user