-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject IPv4 addresses with trailing whitespaces + non-whitespaces (#293)
Reject edge cases where inputs like `1.1.1.1 com` or `1.1.1.1\rsomething` are parsed as IPv4 addresses. **fullmatch** is about 10% slower than **match** but it'll only affect systems that do not support **pton** (non-Unix/Windows).
- Loading branch information
1 parent
366112c
commit 570060d
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters