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 <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2022-08-01 15:59:08 +02:00
parent ac47bc9dd7
commit 43cea79a82

View 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();