-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message in
util.parse()
by incrementally using regexes (
#301) * Improve error message in `util.parse()` by incrementally using regexes This loses a bit of performance, but allows us to improve the error message to the user by attaching information about which part of the URI was invalid. Since we consider the regexes an implementation detail, we do not return them in the error message. Changes the failure test to include the expected invalid parts to harden the test case.
- Loading branch information
1 parent
06134be
commit 968652b
Showing
2 changed files
with
31 additions
and
16 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