We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec2c02b commit 75bff52Copy full SHA for 75bff52
1 file changed
apps/sim/lib/api/contracts/oauth-connections.ts
@@ -143,7 +143,7 @@ export const oauthAuthorizeParamsResponseSchema = z.object({
143
response_type: z.literal('code'),
144
})
145
146
-const SHOPIFY_SHOP_DOMAIN_REGEX = /^[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.myshopify\.com$/
+const SHOPIFY_SHOP_DOMAIN_REGEX = /^[a-z0-9][a-z0-9-]{1,58}[a-z0-9]\.myshopify\.com$/
147
export const shopifyShopDomainSchema = z.string().regex(SHOPIFY_SHOP_DOMAIN_REGEX)
148
149
export const listOAuthConnectionsContract = defineRouteContract({
0 commit comments