mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-29 14:47:40 +00: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:
		| @@ -273,7 +273,7 @@ $tw.utils.parseStringArray = function(value) { | |||||||
| 			match = memberRegExp.exec(value); | 			match = memberRegExp.exec(value); | ||||||
| 			if(match) { | 			if(match) { | ||||||
| 				var item = match[1] || match[2]; | 				var item = match[1] || match[2]; | ||||||
| 				if(results.indexOf(item) === -1) { | 				if(item !== undefined && results.indexOf(item) === -1) { | ||||||
| 					results.push(item); | 					results.push(item); | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene