mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: format ignore case
This commit is contained in:
parent
2828640ed7
commit
6e6469d90f
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ export const removeSymbolsFromName = (name: string) =>
|
||||||
|
|
||||||
export const removeSpecialEditionFromName = (name: string) =>
|
export const removeSpecialEditionFromName = (name: string) =>
|
||||||
name.replace(
|
name.replace(
|
||||||
/(The |Digital )?(GOTY|Deluxe|Standard|Ultimate|Definitive|Enhanced|Collector's|Premium|Digital|Limited|Game of the Year|Reloaded|[0-9]{4}) Edition/g,
|
/(The |Digital )?(GOTY|Deluxe|Standard|Ultimate|Definitive|Enhanced|Collector's|Premium|Digital|Limited|Game of the Year|Reloaded|[0-9]{4}) Edition/gi,
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ export const formatName = pipe<string>(
|
||||||
replaceUnderscoreWithSpace,
|
replaceUnderscoreWithSpace,
|
||||||
replaceDotsWithSpace,
|
replaceDotsWithSpace,
|
||||||
replaceNbspWithSpace,
|
replaceNbspWithSpace,
|
||||||
(str) => str.replace(/DIRECTOR'S CUT/g, ""),
|
(str) => str.replace(/DIRECTOR'S CUT/gi, ""),
|
||||||
removeSymbolsFromName,
|
removeSymbolsFromName,
|
||||||
removeDuplicateSpaces,
|
removeDuplicateSpaces,
|
||||||
(str) => str.trim()
|
(str) => str.trim()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue