diff --git a/tldextract/remote.py b/tldextract/remote.py index 08b0722..8ac8311 100644 --- a/tldextract/remote.py +++ b/tldextract/remote.py @@ -7,8 +7,9 @@ from urllib.parse import scheme_chars IP_RE = re.compile( - r"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.)" - r"{3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$" + r"^(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.)" + r"{3}(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", + re.ASCII, ) scheme_chars_set = set(scheme_chars)