diff options
author | Blaster4385 <[email protected]> | 2024-02-19 20:43:31 +0530 |
---|---|---|
committer | Blaster4385 <[email protected]> | 2024-02-21 23:52:45 +0530 |
commit | 96c2c2b16ff36b6fc01f4bcae26ff3d1e885b73d (patch) | |
tree | 7e264fddc3d6fda7b5026495dbc68345dacd78a9 /client/src/utils | |
parent | 2186af44ecc1924f8343e06714999c76a15a1c0e (diff) |
feat: Add support for shortening URLs
Diffstat (limited to 'client/src/utils')
-rw-r--r-- | client/src/utils/constants.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/utils/constants.js b/client/src/utils/constants.js index 2583f6c..8d409f6 100644 --- a/client/src/utils/constants.js +++ b/client/src/utils/constants.js @@ -1,4 +1,6 @@ +export const CLIENT_BASE_URL = import.meta.env.VITE_CLIENT_BASE_URL; export const SERVER_BASE_URL = import.meta.env.VITE_SERVER_BASE_URL; +export const URL_REGEX = /^(https?:\/\/)?([\w.-]+\.[a-z]{2,})(\/?[^\s]*)?$/; export const SUPPORTED_LANGUAGES = [{ value: "none", label: "Plain Text", |