Update apps/studio/pages/api/edge-functions/test.ts

Co-authored-by: Etienne Stalmans <staaldraad@users.noreply.github.com>
This commit is contained in:
Joshen LimandEtienne Stalmans authored and GitHub committed 2025-05-15 15:31:45 +08:00
1 parent a073a53981
commit 6359dacfdc
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ async function handlePost(req: NextApiRequest, res: NextApiResponse) {
const { url, method, body: requestBody, headers: customHeaders } = req.body
const regexValidEdgeFunctionURL = new RegExp(
'https://[a-z]*.supabase.(red|co)/functions/v[0-9]{1}/S*',
'^https://[a-z]*.supabase.(red|co)/functions/v[0-9]{1}/\S*$',
'g'
)
const validEdgeFunctionURL = regexValidEdgeFunctionURL.test(url)