reverseproxy: fix typo in regexp matching

This commit is contained in:
Girish Ramakrishnan
2022-12-08 10:04:50 +01:00
parent a198d1ea8d
commit d7d43c73fe
2 changed files with 2 additions and 1 deletions

View File

@@ -592,7 +592,7 @@ async function cleanupCerts(locations, auditSource, progressCallback) {
const certIds = await blobs.listCertIds();
const removedCertNames = [];
for (const certId of certIds) {
const certName = certId.match(new RegExp(`${blobs.CERT_PREFIX}-(.*).cert`))[0];
const certName = certId.match(new RegExp(`${blobs.CERT_PREFIX}-(.*).cert`))[1];
if (certNamesInUse.has(certName)) continue;
const cert = await blobs.getString(certId);