From 89f0f5c6882289e3d0f21f48a3f7c779d0a182cd Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Thu, 19 Mar 2020 18:56:12 +0300 Subject: [PATCH] Remove possible tilda from a string of installed dependency. Fix #246. --- src/mibew/libs/classes/Mibew/Plugin/PluginInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mibew/libs/classes/Mibew/Plugin/PluginInfo.php b/src/mibew/libs/classes/Mibew/Plugin/PluginInfo.php index 7cc42bf7..8845637f 100644 --- a/src/mibew/libs/classes/Mibew/Plugin/PluginInfo.php +++ b/src/mibew/libs/classes/Mibew/Plugin/PluginInfo.php @@ -268,7 +268,7 @@ class PluginInfo // Check exact version of the library $version_constrain = new VersionExpression($required_version); - if (!$version_constrain->satisfiedBy(new Version($system_info[$lib], true))) { + if (!$version_constrain->satisfiedBy(new Version(preg_replace('/~/', '-', $system_info[$lib]), true))) { return true; } }