diff --git a/sudocleanssl.js b/sudocleanssl.js index 8904ce1..7a4a6d7 100644 --- a/sudocleanssl.js +++ b/sudocleanssl.js @@ -6,7 +6,7 @@ import shelljs from 'shelljs'; const { exec, ShellString, cat } = shelljs; // | DOMAIN NAME | PATH TO CERTIFICATE FILE | VALID UNTIL | EXPIRES IN | STATUS | -const certsExpiryRegexp = /^\| (\S+)\s+\| (\/.+?)\s+\| (.+?)\s+\| (.*?)\s+\| (\S+)\s+\|$/gm; +const certsExpiryRegexp = /^\| (\S+)\s+\| (\/.+?)\s+\| (.+?)\s+\| (.*?)\s+\| (\S+)\s+\|$/m; const cmdListCertsExpiry = 'virtualmin list-certs-expiry --all-domains'; const cmdListCertsRenewals = 'virtualmin list-domains --name-only --with-feature letsencrypt_renew'; const askDomainDetailPrefix = 'virtualmin list-domains --simple-multiline --domain ';