Skip to content

updated regex for provider name #1723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

hiteshbedre
Copy link
Contributor

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 #1719

@hiteshbedre hiteshbedre requested a review from a team as a code owner August 17, 2024 15:24
Copy link
Member

@kangmingtay kangmingtay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hiteshbedre thanks for catching this one and making a fix for it!

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10433323706

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 58.222%

Totals Coverage Status
Change from base Build 10420582753: 0.0%
Covered Lines: 9195
Relevant Lines: 15793

💛 - Coveralls

@kangmingtay kangmingtay merged commit 0658bbe into supabase:master Aug 19, 2024
2 checks passed
uxodb pushed a commit to uxodb/auth that referenced this pull request Nov 13, 2024
## 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
supabase#1719
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 13, 2024
## 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
supabase#1719
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 15, 2024
## 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
supabase#1719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants