From 2824a3eba9f82cbfb7fb4d1b655dfc629df91775 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Mon, 23 Dec 2024 06:42:01 +0100 Subject: [PATCH] Fix typos (#9) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6cf6668..75822e0 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ c.Check(v) // true Note that this is different from the behavior of npm. `>= 2.0.0-alpha` allows pre-releases in the 2.0.0 version only, if they are greater than or equal to alpha. So, 2.0.0-beta would be allowed, while 2.1.0-alpha would not. -You can use [go-npm-version](https://github.com/aquasecurity/go-npm-version) for npm version comparion. +You can use [go-npm-version](https://github.com/aquasecurity/go-npm-version) for npm version comparison. It strictly follows the npm rules. If you want to include pre-releases even with no pre-releases constraint, you can pass `semver.WithPreRelease(true)` as an argument of `semver.NewConstraints` @@ -164,7 +164,7 @@ c, _ := semver.NewConstraints("> 2") c.Check(v) // false ``` -`3.3.9` satisifies `= 3.3`, and `5.1.2` doesn't satisfy `> 5.1` likewise. +`3.3.9` satisfies `= 3.3`, and `5.1.2` doesn't satisfy `> 5.1` likewise. If you want to treat them as 0, you can pass `semver.WithZeroPadding(true)` as an argument of `semver.NewConstraints`