mirror of
https://github.com/FranP-code/shortly.git
synced 2025-10-13 00:43:28 +00:00
first working prototype of shortly
This commit is contained in:
13
src/utils/constants.ts
Normal file
13
src/utils/constants.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export type Crypto = {
|
||||
iv: string
|
||||
}
|
||||
export type CryptoWithContent = {
|
||||
iv: string
|
||||
content: string
|
||||
}
|
||||
export type UserRoles = 'admin' | 'user'
|
||||
export const charactersForIdGeneration =
|
||||
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-()!_><'
|
||||
export const isUrlRegex = new RegExp(
|
||||
'^(http[s]?:\\/\\/(www\\.)?|ftp:\\/\\/(www\\.)?|www\\.){1}([0-9A-Za-z-\\.@:%_+~#=]+)+((\\.[a-zA-Z]{2,3})+)(/(.)*)?(\\?(.)*)?'
|
||||
)
|
||||
Reference in New Issue
Block a user