summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-opkg/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-06-03 13:36:02 +0200
committerJo-Philipp Wich <jo@mein.io>2022-06-03 13:36:02 +0200
commitb84791bd029c2aaa67cbc06a15d23828f62f4608 (patch)
treedf3ef3d3eeb13bd6ad934713ba2ba3dc0162c4bc /applications/luci-app-opkg/htdocs/luci-static/resources/view
parent24723a006482c3b664ddffe0f2752386085cbe0f (diff)
luci-app-opkg: fix parsing package dependencies with version constraints
Due to improper ordering of regexp alternatives, version constraint operators might get undermatched. Fixes: https://github.com/openwrt/openwrt/issues/9982 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-opkg/htdocs/luci-static/resources/view')
-rw-r--r--applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
index 57f2006e53..de725ea00a 100644
--- a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
+++ b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
@@ -571,7 +571,7 @@ function renderDependencies(depends, info)
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();