> 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,"")
Use this:
tiddler.tags.join(" ").match(/[0-9]{4}-[0-9]{2}-[0-9]{2}/)||""
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
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.