From 590b506d14737cfbe5e57f0008601a5071d5cd44 Mon Sep 17 00:00:00 2001 From: Kale Franz Date: Tue, 4 Nov 2014 10:37:19 -0800 Subject: [PATCH] make empty string a valid extension option --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5707ada..2f12988 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ module.exports = function(options) { 'use strict'; var opts = options ? clone(options) : {}; - opts.ext = opts.ext || ".html"; + opts.ext = opts.ext != null ? opts.ext : ".html"; if (opts.defaults) { swig.setDefaults(opts.defaults);