You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
4.0 KiB
92 lines
4.0 KiB
From 6d32d7a7bb3682891656ab91562c5df379cdf66f Mon Sep 17 00:00:00 2001
|
|
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
|
|
Date: Fri, 21 Jun 2024 10:11:47 -0400
|
|
Subject: [PATCH 1/3] Fix a minor typo in README.md (validing/validating)
|
|
|
|
---
|
|
README.md | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/README.md b/README.md
|
|
index 895dfa9..5c1af43 100644
|
|
--- a/README.md
|
|
+++ b/README.md
|
|
@@ -12,7 +12,7 @@ users by their email address like on a registration form.
|
|
Key features:
|
|
|
|
* Checks that an email address has the correct syntax --- great for
|
|
- email-based registration/login forms or validing data.
|
|
+ email-based registration/login forms or validating data.
|
|
* Gives friendly English error messages when validation fails that you
|
|
can display to end-users.
|
|
* Checks deliverability (optional): Does the domain name resolve?
|
|
|
|
From 1b2be12df83498144b5d30b05d49ad9798a681e8 Mon Sep 17 00:00:00 2001
|
|
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
|
|
Date: Fri, 21 Jun 2024 10:12:38 -0400
|
|
Subject: [PATCH 2/3] Fix a minor typo in CHANGELOG.md (Verison/Version)
|
|
|
|
---
|
|
CHANGELOG.md | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/CHANGELOG.md b/CHANGELOG.md
|
|
index 2aea055..4bf9451 100644
|
|
--- a/CHANGELOG.md
|
|
+++ b/CHANGELOG.md
|
|
@@ -77,7 +77,7 @@ Version 1.2.1 (May 1, 2022)
|
|
* example.com/net/org are removed from the special-use reserved domain names list so that they do not raise exceptions if check_deliverability is off.
|
|
* Improved README.
|
|
|
|
-Verison 1.2.0 (April 24, 2022)
|
|
+Version 1.2.0 (April 24, 2022)
|
|
------------------------------
|
|
|
|
* Reject domains with NULL MX records (when deliverability checks
|
|
|
|
From 8e1f67e47d789cd88ac6e016b187bbf9be805729 Mon Sep 17 00:00:00 2001
|
|
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
|
|
Date: Fri, 21 Jun 2024 10:13:34 -0400
|
|
Subject: [PATCH 3/3] Fix minor typos in code comments
|
|
|
|
---
|
|
email_validator/__main__.py | 2 +-
|
|
email_validator/syntax.py | 4 ++--
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/email_validator/__main__.py b/email_validator/__main__.py
|
|
index 52791c7..caa111b 100644
|
|
--- a/email_validator/__main__.py
|
|
+++ b/email_validator/__main__.py
|
|
@@ -38,7 +38,7 @@ def main(dns_resolver: Optional[_Resolver] = None) -> None:
|
|
options[varname.lower()] = float(os.environ[varname])
|
|
|
|
if len(sys.argv) == 1:
|
|
- # Validate the email addresses pased line-by-line on STDIN.
|
|
+ # Validate the email addresses passed line-by-line on STDIN.
|
|
dns_resolver = dns_resolver or caching_resolver()
|
|
for line in sys.stdin:
|
|
email = line.strip()
|
|
diff --git a/email_validator/syntax.py b/email_validator/syntax.py
|
|
index c655451..f53fd5b 100644
|
|
--- a/email_validator/syntax.py
|
|
+++ b/email_validator/syntax.py
|
|
@@ -57,7 +57,7 @@ def split_string_at_unquoted_special(text: str, specials: Tuple[str, ...]) -> Tu
|
|
for i, c in enumerate(text):
|
|
# < plus U+0338 (Combining Long Solidus Overlay) normalizes to
|
|
# ≮ U+226E (Not Less-Than), and it would be confusing to treat
|
|
- # the < as the start of "<email>" syntax in that case. Liekwise,
|
|
+ # the < as the start of "<email>" syntax in that case. Likewise,
|
|
# if anything combines with an @ or ", we should probably not
|
|
# treat it as a special character.
|
|
if unicodedata.normalize("NFC", text[i:])[0] != c:
|
|
@@ -642,7 +642,7 @@ def validate_email_length(addrinfo: ValidatedEmail) -> None:
|
|
# form is checked first because it is the original input.
|
|
# 2) The normalized email address. We perform Unicode NFC normalization of
|
|
# the local part, we normalize the domain to internationalized characters
|
|
- # (if originaly IDNA ASCII) which also includes Unicode normalization,
|
|
+ # (if originally IDNA ASCII) which also includes Unicode normalization,
|
|
# and we may remove quotes in quoted local parts. We recommend that
|
|
# callers use this string, so it must be valid.
|
|
# 3) The email address with the IDNA ASCII representation of the domain
|