fix: php: semver anything satisfies "*" "@dev"

This commit is contained in:
Martin Toman 2022-09-05 10:57:48 -07:00
parent 55d2536e4c
commit 4432a09e15

View File

@ -43,7 +43,8 @@
cleanConstraint = removeV (wildcard (tilde (removeSuffix constraint)));
cleanVersion = removeX (l.removePrefix "v" (removeSuffix version));
in
(version == constraint)
(l.any (x: constraint == x) ["*" "@dev" "@master" "@dev-master"])
|| (version == constraint)
|| (
utils.satisfiesSemver
cleanVersion