From 6e6469d90f8302686b700c667b7fc98ee37029e3 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Sun, 10 Nov 2024 20:55:23 -0300 Subject: [PATCH] fix: format ignore case --- src/shared/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/index.ts b/src/shared/index.ts index 173867df..cc35d241 100644 --- a/src/shared/index.ts +++ b/src/shared/index.ts @@ -46,7 +46,7 @@ export const removeSymbolsFromName = (name: string) => export const removeSpecialEditionFromName = (name: string) => 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( replaceUnderscoreWithSpace, replaceDotsWithSpace, replaceNbspWithSpace, - (str) => str.replace(/DIRECTOR'S CUT/g, ""), + (str) => str.replace(/DIRECTOR'S CUT/gi, ""), removeSymbolsFromName, removeDuplicateSpaces, (str) => str.trim()