From 5c75ba9468b36af668f1af439cbd546461ed098f Mon Sep 17 00:00:00 2001 From: Jan Schmidle Date: Fri, 8 Feb 2013 16:17:24 +0100 Subject: [PATCH] fixed small issue that could occur with wrong evaluated parameters --- lib/layouts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/layouts.js b/lib/layouts.js index aed65b8..931fc48 100644 --- a/lib/layouts.js +++ b/lib/layouts.js @@ -236,7 +236,7 @@ function patternLayout (pattern, tokens) { replacement = "%"; break; case "x": - if(tokens[specifier]) { + if(typeof(tokens[specifier]) !== 'undefined') { if(typeof(tokens[specifier]) === 'function') { replacement = tokens[specifier](); } else {