luci-proto-openconnect: 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>
This commit is contained in:
parent
f1c89c103b
commit
c43fa199bf
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ function validateCert(priv, section_id, value) {
|
||||||
for (i = 0; i < lines.length; i++) {
|
for (i = 0; i < lines.length; i++) {
|
||||||
if (lines[i].match(beg))
|
if (lines[i].match(beg))
|
||||||
start = true;
|
start = true;
|
||||||
else if (start && !lines[i].match(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/))
|
else if (start && !lines[i].match(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue