Fix Around location update (#3229)

pull/3254/head
Hariom Balhara 2022-07-07 06:52:56 +05:30 committed by GitHub
parent c6b1d99270
commit 6db129e3bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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(),