From: Chuanhong Guo Date: Thu, 5 Nov 2020 13:22:18 +0000 (+0800) Subject: luci-proto-gre: remove extra parenthesis X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2201f77c270633fd7510823c1b2ecd1bb3b3b3f2;p=project%2Fluci.git luci-proto-gre: remove extra parenthesis fix the following error: SyntaxError Unexpected token ')' in http://192.168.122.131/luci-static/resources/protocol/grev6.js:? at http://192.168.122.131/luci-static/resources/luci.js:22 at async Promise.all (index 4) at async Promise.all (index 5) Fixes: 2b7fd1292 ("luci-proto-gre: improvement of LuCI interface") Signed-off-by: Chuanhong Guo --- diff --git a/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js b/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js index d8fb3d3377..f9a8f079a9 100644 --- a/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js +++ b/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js @@ -79,7 +79,7 @@ return network.registerProtocol('grev6', { o = s.taboption('advanced', form.Value, 'tos', _("Traffic Class"), _("Specify a Traffic Class. Can be inherit (the outer header inherits the value of the inner header) or an hexadecimal value 00..FF (optional).")); o.optional = true; o.validate = function(section_id, value) { - if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i))) + if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i)) return _("Invalid Traffic Class value, expected 00..FF or inherit"); return true;