Skip to content
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

Remove unnecessary string.Split in JsonWebTokenHandler.CanReadToken #2175

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

stephentoub
Copy link
Collaborator

We can count the number of periods instead of allocating a string for each segment and a string[] to store them all in.

We can count the number of periods instead of allocating a string for each segment and a string[] to store them all in.
@keegan-caruso keegan-caruso merged commit fe24a61 into AzureAD:dev7x Jul 26, 2023
@jennyf19 jennyf19 added this to the 7.0.0-preview2 milestone Jul 27, 2023
brentschmaltz pushed a commit that referenced this pull request Jul 28, 2023
…2175)

We can count the number of periods instead of allocating a string for each segment and a string[] to store them all in.
brentschmaltz pushed a commit that referenced this pull request Sep 6, 2023
…2175)

We can count the number of periods instead of allocating a string for each segment and a string[] to store them all in.
brentschmaltz pushed a commit that referenced this pull request Sep 7, 2023
…2175)

We can count the number of periods instead of allocating a string for each segment and a string[] to store them all in.
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.

4 participants