diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-01-21 18:38:04 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-22 22:02:24 +0100 |
commit | f1c89c103b6e5109d45a7573f707fb83d8365ce2 (patch) | |
tree | 474c809dfad40bbde055b8c6e7a2746c23f2092b /protocols | |
parent | 44b9d8e39eb8e3c4d734e6e60bdf319539c95ada (diff) |
luci-proto-wireguard: explicitely escape slashes in regex literals
The unespaced slashes confuse xgettext and likely other source
scanners as well.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js index ab76326ee..c9b00abde 100644 --- a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js +++ b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js @@ -6,7 +6,7 @@ function validateBase64(section_id, value) { if (value.length == 0) return true; - if (value.length != 44 || !value.match(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/)) + if (value.length != 44 || !value.match(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)) return _('Invalid Base64 key string'); return true; |