Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JoshData/python-email-validator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8043de4
Choose a base ref
...
head repository: JoshData/python-email-validator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 688a263
Choose a head ref
  • 2 commits
  • 8 files changed
  • 1 contributor

Commits on Apr 10, 2023

  1. Parse quoted-string local parts but by default keep them disallowed w…

    …ith better exception messages
    
    People have opened issues several times about quoted local parts being incorrectly rejected. We can give a better error when it happens to head-off questions about it by parsing them so that we know when they occur.
    
    * Detect when a quoted-string local part might be present when splitting the address into a local part and domain part when the address has quoted @-signs in the local part rather than giving an error message about multiple @-signs.
    * Remove the surrounding quotes and un-escape the string before checking the syntax of the local part. Return the un-quoted and un-escaped string as the normalized local_part in the returned ValidatedEmail object if it's valid as an unquoted local part.
    * Check for invalid characters in the quoted-string (per the spec and our additional Unicode character checks) and raise exceptions.
    * Add a new option to accept quoted-string local parts which is off by default. When accepting them, apply Unicode normalization as per dot-atom internationalized addresses and apply minimal backslash escaping.
    * Update tests.
    JoshData committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    4c751f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    688a263 View commit details
    Browse the repository at this point in the history
Loading