smartacme/ts/smartacme.classes.certmatcher.ts
2019-01-13 02:10:00 +01:00

11 lines
341 B
TypeScript

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}`;
}
}
}