smartacme/ts/smartacme.classes.certmatcher.ts

11 lines
341 B
TypeScript
Raw Normal View History

2019-01-13 01:10:00 +00:00
import * as plugins from './smartacme.plugins';
export class CertMatcher {
public getCertificateDomainNameByDomainName(domainNameArg: string): string {
const originalDomain = new plugins.smartstring.Domain(domainNameArg);
if (!originalDomain.level4) {
return `${originalDomain.level2}.${originalDomain.level1}`;
}
}
}