validate_address can't handle display name
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 213
- PR merge metrics
- No merged PRs in 30d
Description
This looks like a possible bug; address.validate_address returns none when passed a email string with a display name. Yet parse can handle it.
```python
>>> text = 'Fooman '
>>> address.validate_address(text)
>>> None
>>> address.validate_address('fooman@bar.com')
>>> fooman@bar.com
```
```python
>>> address.parse('Fooman ')
>>>Fooman
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the address.validate_address entry point and compare its handling of the display-name input with address.parse, using the examples in the issue to reproduce the behavior. Done means validate_address accepts the display-name form consistently with the plain email form and no longer returns None for that input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100