Skip to content

Commit

Permalink
fix: ignore character case when validate url-s
Browse files Browse the repository at this point in the history
URL-s can have uppercase characters.
  • Loading branch information
KarolBedkowski committed Jul 11, 2023
1 parent 3a770dc commit 48a3a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kupfer/support/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _is_valid_domain(domain: str) -> bool:
r"(?<!-)" # can't end with a dash
r"\.?" # may have a trailing dot
)
return bool(re.match(domain_re, domain))
return bool(re.match(domain_re, domain, re.IGNORECASE))


def validate_netloc(netloc: str) -> bool:
Expand Down

0 comments on commit 48a3a28

Please sign in to comment.