Skip to content

maint: improve domain, email & hostname #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

yozachar
Copy link
Collaborator

  • in domain: decode value to utf-8 instead of ascii; use re.match directly
  • in email: split ip_address to ipv4 and ipv6 parameters
  • in hostname: split skip_ip_addr to skip ipv4 & ipv6 parameters

This PR will be closed in an hour.

@yozachar yozachar added review PR: Can be reviewed maintenance PR: Alters existing source code labels Mar 17, 2023
@yozachar yozachar self-assigned this Mar 17, 2023
@yozachar
Copy link
Collaborator Author

yozachar commented Mar 17, 2023

Not sure why the diff on GitHub looks weird. Locally it's fine:

image


It was line ending :/

- in `domain`: decode value to `utf-8` instead of `ascii`; use `re.match` directly
- in `email`: split `ip_address` to `ipv4` and `ipv6` parameters
- in `hostname`: split `skip_ip_addr` to skip `ipv4` & `ipv6` parameters
@yozachar yozachar removed the review PR: Can be reviewed label Mar 17, 2023
@yozachar yozachar merged commit bbf4600 into python-validators:master Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance PR: Alters existing source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant