From 86d182fd51e6935ec8f2c3bc73ff1a16c23b3600 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 26 May 2014 17:47:07 +0100 Subject: [PATCH] Fix importing blank fields from TiddlyWiki files --- core/modules/deserializers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/deserializers.js b/core/modules/deserializers.js index c976459ee..5e3fce42e 100644 --- a/core/modules/deserializers.js +++ b/core/modules/deserializers.js @@ -57,7 +57,7 @@ var parseTiddlerDiv = function(text /* [,fields] */) { attrMatch = attrRegExp.exec(match[1]); if(attrMatch) { var name = attrMatch[1]; - var value = attrMatch[2] || attrMatch[3]; + var value = attrMatch[2] !== undefined ? attrMatch[2] : attrMatch[3]; result[name] = value; } } while(attrMatch);