mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: migration to scss
This commit is contained in:
parent
c9e99d3852
commit
4b59a007f4
38 changed files with 402 additions and 383 deletions
|
|
@ -55,6 +55,9 @@ export const removeDuplicateSpaces = (name: string) =>
|
|||
|
||||
export const replaceDotsWithSpace = (name: string) => name.replace(/\./g, " ");
|
||||
|
||||
export const replaceNbspWithSpace = (name: string) =>
|
||||
name.replace(new RegExp(String.fromCharCode(160), "g"), " ");
|
||||
|
||||
export const replaceUnderscoreWithSpace = (name: string) =>
|
||||
name.replace(/_/g, " ");
|
||||
|
||||
|
|
@ -69,6 +72,7 @@ export const formatName = pipe<string>(
|
|||
removeSpecialEditionFromName,
|
||||
replaceUnderscoreWithSpace,
|
||||
replaceDotsWithSpace,
|
||||
replaceNbspWithSpace,
|
||||
(str) => str.replace(/DIRECTOR'S CUT/g, ""),
|
||||
removeSymbolsFromName,
|
||||
removeDuplicateSpaces,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue