-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: optional strict parsing of matchspec and versionspec (#552)
Adds a mode to all `from_str` functions for `MatchSpec`, `NamelessMatchSpec`, `VersionSpec`, and `Constraint`. Strict mode disallows some ambigous syntax like: * `>=1.*` should just be `>=1` * `*.*` should just be `*` All parsing functions accept a `ParseStrictness` that can either be `Strict` or `Lenient`. `Lenient` mode should be used when parsing repodata etc, but `Strict` mode can be used to validate new user input.
- Loading branch information
1 parent
e0b9840
commit f97c97b
Showing
17 changed files
with
584 additions
and
342 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
Oops, something went wrong.