Merge pull request #4575 from 981213/fix-gre
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 5 Nov 2020 14:20:26 +0000 (15:20 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Nov 2020 14:20:26 +0000 (15:20 +0100)
luci-proto-gre: remove extra parenthesis

protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js

index d8fb3d337732894bb9bae72a695c0c34fb5b91fb..f9a8f079a9045668d8af1aba35ca9b1e69f719f2 100644 (file)
@@ -79,7 +79,7 @@ return network.registerProtocol('grev6', {
                o = s.taboption('advanced', form.Value, 'tos', _("Traffic Class"), _("Specify a Traffic Class. Can be <code>inherit</code> (the outer header inherits the value of the inner header) or an hexadecimal value <code>00..FF</code> (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;