summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-07-02 20:40:08 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-02 20:43:31 +0200
commit2869c9cf324a9e057567075d4977c7cc40140938 (patch)
tree851804367c6932ab067e82aec4bccf2399e04874 /modules/luci-mod-network
parent12067c8308936abb567001650105b33bec9a56a9 (diff)
luci-mod-network: work around jsmin bug
The jsmin minifier incorrectly transforms the expression `/\*/.test(...)` into `/\* /.test(...)`, causing the VLAN filter dialog to not recognize PVID settings in the configuration. Work around the issue by using an equivalent `\x2a` escape sequence instead. Ref: https://forum.openwrt.org/t/x/99222/28 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
index 8efbd89d4b..d13299777f 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
@@ -274,7 +274,7 @@ var cbiTagValue = form.Value.extend({
var t = /t/.test(s[1] || '') ? 't' : 'u';
- return /\*/.test(s[1] || '') ? [t, '*'] : [t];
+ return /\x2a/.test(s[1] || '') ? [t, '*'] : [t];
}
return ['-'];