diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-11-05 15:20:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 15:20:26 +0100 |
commit | caaaee406da900248088a516bb7fc2f6287e42fd (patch) | |
tree | 3a956c7ccb5d0b3a9b86cf79f3cf313a7d322e4f | |
parent | 0cdad3834fdd2180771a8dfb8f29f6369ce3799a (diff) | |
parent | 37f97b7859c8a601024ae6570e9d481c50ee8897 (diff) |
Merge pull request #4575 from 981213/fix-gre
luci-proto-gre: remove extra parenthesis
-rw-r--r-- | protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 d8fb3d337..f9a8f079a 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 <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; |