Skip to content
Browse files

fixed small issue that could occur with wrong evaluated parameters

  • Loading branch information...
1 parent bec0d05 commit 5c75ba9468b36af668f1af439cbd546461ed098f @bitcloud bitcloud committed Feb 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/layouts.js
View
2 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 {

0 comments on commit 5c75ba9

Please sign in to comment.
Something went wrong with that request. Please try again.