mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-26 03:51:14 -08:00
Fix problem with list fields containing [[]]
Fixes #603 - thanks @xcazin! It no longer crashes but unfortunately if you round trip a tiddler out of edit mode and back you’ll lose any empty double square brackets.
This commit is contained in:
parent
d1c85f53c0
commit
cc3d44aec1
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ $tw.utils.parseStringArray = function(value) {
|
|||
match = memberRegExp.exec(value);
|
||||
if(match) {
|
||||
var item = match[1] || match[2];
|
||||
if(results.indexOf(item) === -1) {
|
||||
if(item !== undefined && results.indexOf(item) === -1) {
|
||||
results.push(item);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue