diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-08-23 19:26:24 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2019-08-24 15:13:09 +0200 |
commit | c24f4e2157438be40b44e6ba02d90c6bfa934454 (patch) | |
tree | 66ecf2747c6a605688c0a934d94bab539085c11e /docs/reference.rst | |
parent | 13902f1812697bac01ea1172663a6eedd20ac9d5 (diff) | |
download | semantic-version-c24f4e2157438be40b44e6ba02d90c6bfa934454.tar.gz |
Fix inconsistent matching behaviour.
According to the stated goal of "intuitive" behaviour, we want:
``Version('0.1.1-a1') not in Spec('<0.1.1')``.
Tests, code and docs have been fixed.
Diffstat (limited to 'docs/reference.rst')
-rw-r--r-- | docs/reference.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/reference.rst b/docs/reference.rst index f9b4aed..a7fce0b 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -330,8 +330,8 @@ does not map well onto `SemVer`_ precedence rules: In order to have version specification behave naturally, the rules are the following: -* If no pre-release number was included in the specification, pre-release numbers - are ignored when deciding whether a version satisfies a specification. +* If no pre-release number was included in the specification, versions with a pre-release + numbers are excluded from matching that specification. * If no build metadata was included in the specification, build metadata is ignored when deciding whether a version satisfies a specification. |