diff options
Diffstat (limited to 'src/lib/utils.ts')
-rw-r--r-- | src/lib/utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/utils.ts b/src/lib/utils.ts index a4803df..547a122 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -130,6 +130,8 @@ export function millisecondsToTime(totalMilliseconds: number, opts: Milliseconds export function cleanId(id: string) { for (const string of ['deaths', 'kills', 'collection', 'skill']) id = moveToEndOfId(string, id) + if (id.startsWith('harp_') && id.endsWith('_completions')) + id = id.slice('harp_'.length) return id .replace(/^./, id[0].toUpperCase()) |