diff --git a/msal/authority.py b/msal/authority.py index e575fbe7..689ea8cb 100644 --- a/msal/authority.py +++ b/msal/authority.py @@ -65,7 +65,7 @@ def user_realm_discovery(self, username): def canonicalize(url): # Returns (canonicalized_url, netloc, tenant). Raises ValueError on errors. - match_object = re.match("https://([^/]+)/([^/\?#]+)", url.lower()) + match_object = re.match(r'https://([^/]+)/([^/?#]+)', url.lower()) if not match_object: raise ValueError( "Your given address (%s) should consist of "