From 43cea79a826f015d0c69cf0af702961fa6cf1c29 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 1 Aug 2022 15:59:08 +0200 Subject: [PATCH] luci-app-opkg: fix parsing dependency version constraints 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 --- .../luci-app-opkg/htdocs/luci-static/resources/view/opkg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f1be0eed36..311078a22c 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 @@ -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(); -- 2.30.2