From 2d7bbe3a1e8808a3f55bb5fbe844c30f4527c50a Mon Sep 17 00:00:00 2001 From: Joshua Smith Date: Sat, 4 Dec 2021 15:16:01 -0400 Subject: [PATCH] fix: fix matching literal "." in aad authority regex --- android/src/main/java/com/reactnativemsal/RNMSALModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/reactnativemsal/RNMSALModule.java b/android/src/main/java/com/reactnativemsal/RNMSALModule.java index acddbe9..6ab7a2e 100644 --- a/android/src/main/java/com/reactnativemsal/RNMSALModule.java +++ b/android/src/main/java/com/reactnativemsal/RNMSALModule.java @@ -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;