mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding hltb key extraction
This commit is contained in:
parent
0222121288
commit
baafc6c7d1
22 changed files with 791 additions and 205 deletions
|
@ -1,3 +1,4 @@
|
|||
import { charMap } from "./char-map";
|
||||
import { Downloader } from "./constants";
|
||||
|
||||
export * from "./constants";
|
||||
|
@ -51,6 +52,12 @@ export const replaceUnderscoreWithSpace = (name: string) =>
|
|||
name.replace(/_/g, " ");
|
||||
|
||||
export const formatName = pipe<string>(
|
||||
(str) =>
|
||||
str.replace(
|
||||
new RegExp(Object.keys(charMap).join("|"), "g"),
|
||||
(match) => charMap[match]
|
||||
),
|
||||
(str) => str.toLowerCase(),
|
||||
removeReleaseYearFromName,
|
||||
removeSpecialEditionFromName,
|
||||
replaceUnderscoreWithSpace,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue