Any idea how to avoid the NULL respectively replace it by an empty string 
if match doesn't get any result?

tiddler.tags.join(" ").match(/[0-9]{4}-[0-9]{2}-[0-9]{2}/).replace(/\0/g,"")

ends up with "TypeError: Cannot  call method 'replace' of null". 


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/eiW5MMVwHF8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to