luci-app-opkg: fix parsing package dependencies with version constraints
authorJo-Philipp Wich <jo@mein.io>
Fri, 3 Jun 2022 11:36:02 +0000 (13:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 3 Jun 2022 11:38:01 +0000 (13:38 +0200)
commit28e92e3f8c3bd06ecbade1873f2c255c354672c2
treead401730d32c52cbf342080281c8e175158a06ad
parent69cbdb87e0bd4822931fd6710a156dc68b37eab2
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>
(cherry picked from commit b84791bd029c2aaa67cbc06a15d23828f62f4608)
applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js