Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
fix: fix matching literal "." in aad authority regex
Browse files Browse the repository at this point in the history
  • Loading branch information
josmithua committed Dec 4, 2021
1 parent c181e2c commit 2d7bbe3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class RNMSALModule extends ReactContextBaseJavaModule {
private static final String AUTHORITY_TYPE_B2C = "B2C";
private static final String AUTHORITY_TYPE_AAD = "AAD";

private static final Pattern aadAuthorityPattern = Pattern.compile("https://login\.microsoftonline\.com/([^/]+)");
private static final Pattern aadAuthorityPattern = Pattern.compile("https://login\\.microsoftonline\\.com/([^/]+)");
private static final Pattern b2cAuthorityPattern = Pattern.compile("https://([^/]+)/tfp/([^/]+)/.+");

private IMultipleAccountPublicClientApplication publicClientApplication;
Expand Down

0 comments on commit 2d7bbe3

Please sign in to comment.