From 23fda0cfc3c18d8d2ed3608747b93006c84bd105 Mon Sep 17 00:00:00 2001 From: lichuan <308831759@qq.com> Date: Mon, 24 Nov 2014 17:50:27 +0800 Subject: [PATCH] fix a bug in doreplace function --- lib/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logger.js b/lib/logger.js index 09cd2f3..b907050 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -210,7 +210,7 @@ function doReplace(src, opts) { } func = funcs[scope]; - if (!func && typeof func !== 'function') { + if (!func || typeof func !== 'function') { res += pro; continue; }