From 24bbc24d907f1a28edecf003dee99d9ec15a10a0 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 5 May 2018 20:01:15 +0000 Subject: [PATCH] typo fix --- examples/vhost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vhost.js b/examples/vhost.js index 72c830a..9785de2 100644 --- a/examples/vhost.js +++ b/examples/vhost.js @@ -41,7 +41,7 @@ require('../').create({ // TODO could test for www/no-www both in directory and IP var e; var hostdir = path.join(srv, opts.domains[0]); - if (!hosnameRe.test(opts.domains[0])) { + if (!hostnameRe.test(opts.domains[0])) { e = new Error("rejecting '" + opts.domains[0] + "' because it is not a valid domain name"); cb(e); return;