diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-06-09 15:40:08 -0400 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-06-09 15:40:08 -0400 |
| commit | cd6e9ba609cfdbcad1365c8589e2c98d755752ad (patch) | |
| tree | 98b1e947f4ae4e306f8289e26354fb783c5ee5b5 /src/constants | |
| parent | 9d7e900a89f343f7752457956f8e1d205774b910 (diff) | |
| parent | 946b1be53189487e860f37e1b422c69bb44cf0c8 (diff) | |
Merge branch 'master' into tma872-purple-indicator
# Conflicts:
# src/constants/constants.ts
# src/utils/common.ts
Diffstat (limited to 'src/constants')
| -rw-r--r-- | src/constants/constants.ts | 1 | ||||
| -rw-r--r-- | src/constants/regex.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/constants/constants.ts b/src/constants/constants.ts index e6c23554..f4ffd750 100644 --- a/src/constants/constants.ts +++ b/src/constants/constants.ts @@ -23,6 +23,7 @@ export const TAGG_RING_DIM = normalize(60); // default height of the navigation bar, from react native library, unless on ipad export const NAV_BAR_HEIGHT = 49; +export const BADGE_LIMIT = 5; export const INTEGRATED_SOCIAL_LIST: string[] = [ 'Instagram', diff --git a/src/constants/regex.ts b/src/constants/regex.ts index 61523203..f934185d 100644 --- a/src/constants/regex.ts +++ b/src/constants/regex.ts @@ -36,7 +36,7 @@ export const nameRegex: RegExp = /^[A-Za-z'\-,. ]{2,20}$/; * - match alphanumerics, and special characters used in URLs */ export const websiteRegex: RegExp = - /^$|^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,50}\.[a-zA-Z0-9()]{2,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]{0,35})$/; + /^$|^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,50}\.[a-zA-Z0-9()]{2,6}\b([-a-zA-Z0-9()@:%_+.~#?&\/=]{0,35})$/; /** * The website regex has the following constraints |
