Skip to content

Commit 3e1b3d7

Browse files
authored
Merge pull request #48 from marstr/issues/47
Updating authority URL regexp to not escape question mark
2 parents 85bdb5e + ce450a7 commit 3e1b3d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal/authority.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def user_realm_discovery(self, username):
6565

6666
def canonicalize(url):
6767
# Returns (canonicalized_url, netloc, tenant). Raises ValueError on errors.
68-
match_object = re.match("https://([^/]+)/([^/\?#]+)", url.lower())
68+
match_object = re.match(r'https://([^/]+)/([^/?#]+)', url.lower())
6969
if not match_object:
7070
raise ValueError(
7171
"Your given address (%s) should consist of "

0 commit comments

Comments
 (0)