diff --git a/lib/utils.js b/lib/utils.js index cc20f8d..f5fad38 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -3,7 +3,7 @@ var path = require('path'); var homeRe = new RegExp("^~(\\/|\\\\|\\" + path.sep + ")"); // very basic check. Allows *.example.com. -var re = /^[a-zA-Z0-9\.\*\-]+$/; +var re = /^(\*\.)?[a-zA-Z0-9\.\-]+$/; var punycode = require('punycode'); var promisify = (require('util').promisify || require('bluebird').promisify); var dnsResolveMxAsync = promisify(require('dns').resolveMx); diff --git a/package.json b/package.json index 704a2ce..b8b3ecd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greenlock", - "version": "2.2.6", + "version": "2.2.7", "description": "Let's Encrypt for node.js on npm", "main": "index.js", "scripts": {