From: Jo-Philipp Wich Date: Mon, 1 Aug 2022 13:59:08 +0000 (+0200) Subject: luci-app-opkg: fix parsing dependency version constraints X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=43cea79a826f015d0c69cf0af702961fa6cf1c29;p=project%2Fluci.git 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 --- 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();