diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2020-04-29 11:46:24 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2020-04-29 11:46:24 +0200 |
commit | 0811fca1c435c1477ee1465578580b491cba6c73 (patch) | |
tree | d83ce16c1b5fa1d6a8ee76a0248a9d77f9aedbb8 /semantic_version | |
parent | eda1ac8c22a99dbd01cd57fbcd459856b469ae46 (diff) | |
download | semantic-version-0811fca1c435c1477ee1465578580b491cba6c73.tar.gz |
Fix wildcard matching for SimpleSpec.
Including docs and tests.
Closes #98.
Diffstat (limited to 'semantic_version')
-rw-r--r-- | semantic_version/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/semantic_version/base.py b/semantic_version/base.py index 7fd871e..871ccb0 100644 --- a/semantic_version/base.py +++ b/semantic_version/base.py @@ -1123,7 +1123,7 @@ class SimpleSpec(BaseSpec): elif minor is None: return Range(Range.OP_GTE, target) & Range(Range.OP_LT, target.next_major()) elif patch is None: - return Range(Range.OP_GTE, target) & Range(Range.OP_LT, target.next_patch()) + return Range(Range.OP_GTE, target) & Range(Range.OP_LT, target.next_minor()) elif build == '': return Range(Range.OP_EQ, target, build_policy=Range.BUILD_STRICT) else: |