Skip to content

Commit

Permalink
Fix Around location update (calcom#3229)
Browse files Browse the repository at this point in the history
  • Loading branch information
hariombalhara authored Jul 7, 2022
1 parent c6b1d99 commit 6db129e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/components/dialog/EditLocationDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
selection?.value === LocationType.Whereby
? z
.string()
.regex(/^http(s)?:\/\/www.whereby.com\/[a-zA-Z0-9]*/)
.regex(/^http(s)?:\/\/(www\.)?whereby.com\/[a-zA-Z0-9]*/)
.optional()
: selection?.value === LocationType.Around
? z
.string()
.regex(/^http(s)?:\/\/www.around.co\/[a-zA-Z0-9]*/)
.regex(/^http(s)?:\/\/(www\.)?around.co\/[a-zA-Z0-9]*/)
.optional()
: selection?.value === LocationType.Riverside
? z
.string()
.regex(/^http(s)?:\/\/www.riverside.fm\/studio\/[a-zA-Z0-9]*/)
.regex(/^http(s)?:\/\/(www\.)?riverside.fm\/studio\/[a-zA-Z0-9]*/)
.optional()
: z.string().url().optional(),
displayLocationPublicly: z.boolean().optional(),
Expand Down

0 comments on commit 6db129e

Please sign in to comment.