Skip to content

Commit d6edfb0

Browse files
authored
Update certificate.js
1 parent cbcf66c commit d6edfb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/internal/certificate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ const internalCertificate = {
731731
return utils.exec('openssl x509 -in ' + certificate_file + ' -ext subjectAltName -noout')
732732
.then((result) => {
733733
// subject=CN = something.example.com
734-
const regex = /^DNS:([^,]+)/gim;
734+
const regex = /DNS:([^\s,]+)/im;
735735
const match = regex.exec(result);
736736

737737
if (typeof match[1] === 'undefined') {

0 commit comments

Comments
 (0)