Fix Around location update (#3229)
parent
c6b1d99270
commit
6db129e3bf
|
@ -84,17 +84,17 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
|
||||||
selection?.value === LocationType.Whereby
|
selection?.value === LocationType.Whereby
|
||||||
? z
|
? z
|
||||||
.string()
|
.string()
|
||||||
.regex(/^http(s)?:\/\/www.whereby.com\/[a-zA-Z0-9]*/)
|
.regex(/^http(s)?:\/\/(www\.)?whereby.com\/[a-zA-Z0-9]*/)
|
||||||
.optional()
|
.optional()
|
||||||
: selection?.value === LocationType.Around
|
: selection?.value === LocationType.Around
|
||||||
? z
|
? z
|
||||||
.string()
|
.string()
|
||||||
.regex(/^http(s)?:\/\/www.around.co\/[a-zA-Z0-9]*/)
|
.regex(/^http(s)?:\/\/(www\.)?around.co\/[a-zA-Z0-9]*/)
|
||||||
.optional()
|
.optional()
|
||||||
: selection?.value === LocationType.Riverside
|
: selection?.value === LocationType.Riverside
|
||||||
? z
|
? z
|
||||||
.string()
|
.string()
|
||||||
.regex(/^http(s)?:\/\/www.riverside.fm\/studio\/[a-zA-Z0-9]*/)
|
.regex(/^http(s)?:\/\/(www\.)?riverside.fm\/studio\/[a-zA-Z0-9]*/)
|
||||||
.optional()
|
.optional()
|
||||||
: z.string().url().optional(),
|
: z.string().url().optional(),
|
||||||
displayLocationPublicly: z.boolean().optional(),
|
displayLocationPublicly: z.boolean().optional(),
|
||||||
|
|
Loading…
Reference in New Issue