mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 13:29:56 +00:00
Fix importing blank fields from TiddlyWiki files
This commit is contained in:
parent
3fa4b00ede
commit
86d182fd51
@ -57,7 +57,7 @@ var parseTiddlerDiv = function(text /* [,fields] */) {
|
|||||||
attrMatch = attrRegExp.exec(match[1]);
|
attrMatch = attrRegExp.exec(match[1]);
|
||||||
if(attrMatch) {
|
if(attrMatch) {
|
||||||
var name = attrMatch[1];
|
var name = attrMatch[1];
|
||||||
var value = attrMatch[2] || attrMatch[3];
|
var value = attrMatch[2] !== undefined ? attrMatch[2] : attrMatch[3];
|
||||||
result[name] = value;
|
result[name] = value;
|
||||||
}
|
}
|
||||||
} while(attrMatch);
|
} while(attrMatch);
|
||||||
|
Loading…
Reference in New Issue
Block a user