luci-app-opkg: fix parsing dependency version constraints
authorJo-Philipp Wich <jo@mein.io>
Mon, 1 Aug 2022 13:59:08 +0000 (15:59 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 1 Aug 2022 13:59:08 +0000 (15:59 +0200)
Revert an acidentally changed regex pattern breaking parsing of certain
version dependency expressions.

Fixes: ac47bc9dd7 ("luci-app-opkg: various improvements")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js

index f1be0eed36b9d842c2d1418ad34cef5fe809276d..311078a22c5b481de4d51646ba373cde92efeebf 100644 (file)
@@ -601,7 +601,7 @@ function renderDependencies(depends, info, flat)
                if (deps[i] === 'libc')
                        continue;
 
-               if (deps[i].match(/^(.+)\s+\((<=|<|>|>=|=|<<|>>)(.+)\)$/)) {
+               if (deps[i].match(/^(.+)\s+\((<=|>=|<<|>>|<|>|=)(.+)\)$/)) {
                        dep = RegExp.$1.trim();
                        vop = RegExp.$2.trim();
                        ver = RegExp.$3.trim();