From bfe68c04c7052e2d641fb7fe84a436e951186eaa Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 27 Apr 2018 11:44:49 -0600 Subject: [PATCH] v2.2.7 better wildcard support --- lib/utils.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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": {