From 878c2c05dea7bd24280da077d7cf75d4daef07b6 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Wed, 30 Aug 2023 00:24:55 +0800 Subject: [PATCH] doc: hyphen range constraint without whitespace --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index eab8cac..dbb9154 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,9 @@ These look like: * `1.2 - 1.4.5` which is equivalent to `>= 1.2 <= 1.4.5` * `2.3.4 - 4.5` which is equivalent to `>= 2.3.4 <= 4.5` +Note that `1.2-1.4.5` without whitespace is parsed completely differently; it's +parsed as a single constraint `1.2.0` with _prerelease_ `1.4.5`. + ### Wildcards In Comparisons The `x`, `X`, and `*` characters can be used as a wildcard character. This works