mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 04:25:11 -05:00
feat: refactored a shit ton of stuff
This commit is contained in:
parent
68be562bd3
commit
fbdfde8680
232 changed files with 2614 additions and 2532 deletions
21
frontend/src/Config/Helpers/Converters.elm
Normal file
21
frontend/src/Config/Helpers/Converters.elm
Normal file
|
@ -0,0 +1,21 @@
|
|||
module Config.Helpers.Converters exposing (..)
|
||||
|
||||
|
||||
formatName : String -> String
|
||||
formatName name =
|
||||
name
|
||||
|> String.toLower
|
||||
|> String.replace " " ""
|
||||
|> String.replace "'" ""
|
||||
|> String.replace "." ""
|
||||
|> String.replace "-" ""
|
||||
|> String.replace "_" ""
|
||||
|
||||
|
||||
formatSocial : String -> String
|
||||
formatSocial name =
|
||||
name
|
||||
|> String.replace "https://x.com/" "@"
|
||||
|> String.replace "https://www.threads.net/@" "@"
|
||||
|> String.replace "https://bsky.app/profile/" "@"
|
||||
|> String.replace "https://www.instagram.com/" "@"
|
Loading…
Add table
Add a link
Reference in a new issue