mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-20 04:52:15 +03:00
fix: php: semver anything satisfies "*" "@dev"
This commit is contained in:
parent
55d2536e4c
commit
4432a09e15
@ -43,7 +43,8 @@
|
|||||||
cleanConstraint = removeV (wildcard (tilde (removeSuffix constraint)));
|
cleanConstraint = removeV (wildcard (tilde (removeSuffix constraint)));
|
||||||
cleanVersion = removeX (l.removePrefix "v" (removeSuffix version));
|
cleanVersion = removeX (l.removePrefix "v" (removeSuffix version));
|
||||||
in
|
in
|
||||||
(version == constraint)
|
(l.any (x: constraint == x) ["*" "@dev" "@master" "@dev-master"])
|
||||||
|
|| (version == constraint)
|
||||||
|| (
|
|| (
|
||||||
utils.satisfiesSemver
|
utils.satisfiesSemver
|
||||||
cleanVersion
|
cleanVersion
|
||||||
|
Loading…
Reference in New Issue
Block a user