tls: pass linting

This commit is contained in:
Fedor Indutny 2012-07-20 22:07:16 +04:00
parent 50122fed8a
commit 42c6952edb

View File

@ -101,8 +101,7 @@ function checkServerIdentity(host, cert) {
function(all, sub) {
if (sub) return '[a-z0-9\\-_]*' + (sub === '-' ? '\\-' : sub);
return '\\' + all;
}
);
});
return new RegExp('^' + re + '$', 'i');
}
@ -163,7 +162,7 @@ function checkServerIdentity(host, cert) {
}
return valid;
};
}
exports.checkServerIdentity = checkServerIdentity;