From 0658bbeebc5b57cbb20787cc16acb4bd16aae013 Mon Sep 17 00:00:00 2001 From: hiteshbedre <32206192+hiteshbedre@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:13:01 +0530 Subject: [PATCH] chore: updated regex for provider name (#1723) ## What kind of change does this PR introduce? Bug fix ## What is the current behavior? A valid provider name gets invalidated. ## What is the new behavior? A possible valid provider name gets verified by regex correctly. ## Additional context `[^a]+` -> This regex will match any char except character `a` `^a$` -> This regex will match string have single char `a` `^[a-zA-Z0-9]+$` -> This regex will match any alphanumeric string. `^` denotes start of string and `$` denotes end of string. This pull request will address https://github.com/supabase/auth/issues/1719 --- openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index f4d1e2e1d5..ef0738012f 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -282,7 +282,7 @@ paths: required: true schema: type: string - pattern: "[^a-zA-Z0-9]+" + pattern: "^[a-zA-Z0-9]+$" - name: scopes in: query required: true