Skip to content

Commit f4a4d83

Browse files
authored
Merge pull request #216 from johnnychen94/patch-1
doc: hyphen range constraint without whitespace
2 parents 9ec6f29 + 878c2c0 commit f4a4d83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ These look like:
171171
* `1.2 - 1.4.5` which is equivalent to `>= 1.2 <= 1.4.5`
172172
* `2.3.4 - 4.5` which is equivalent to `>= 2.3.4 <= 4.5`
173173

174+
Note that `1.2-1.4.5` without whitespace is parsed completely differently; it's
175+
parsed as a single constraint `1.2.0` with _prerelease_ `1.4.5`.
176+
174177
### Wildcards In Comparisons
175178

176179
The `x`, `X`, and `*` characters can be used as a wildcard character. This works

0 commit comments

Comments
 (0)