feat(workspace): 🚸 Improve plan upgrade flow
This commit is contained in:
@ -171,3 +171,9 @@ export const sanitizeUrl = (url: string): string =>
|
||||
url.startsWith('sms:')
|
||||
? url
|
||||
: `https://${url}`
|
||||
|
||||
export const toTitleCase = (str: string) =>
|
||||
str.replace(
|
||||
/\w\S*/g,
|
||||
(txt) => txt.charAt(0).toUpperCase() + txt.slice(1).toLowerCase()
|
||||
)
|
||||
|
Reference in New Issue
Block a user