From 004d137cdd70c9f210361839b8ff5db77c89cb5c Mon Sep 17 00:00:00 2001 From: Sergey Kamardin Date: Wed, 30 Sep 2015 23:40:11 +0300 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 29383c7..9f1fd26 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ var y = d * 365.25; module.exports = function(val, options){ options = options || {}; if ('string' == typeof val) return parse(val); - return options.long + return options['long'] ? fmtLong(val) : fmtShort(val); };