From 6db129e3bf099c14f43dbfe5ef5cc932c455f44d Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Thu, 7 Jul 2022 06:52:56 +0530 Subject: [PATCH] Fix Around location update (#3229) --- apps/web/components/dialog/EditLocationDialog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsx index e8ba7f186e..5823a59f8e 100644 --- a/apps/web/components/dialog/EditLocationDialog.tsx +++ b/apps/web/components/dialog/EditLocationDialog.tsx @@ -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(),