Hi Jon,
you are missing a curly bracket (the if is not closed).
Please note that substr(-4) might produce an out of bounds error if a
tiddler with less then 4 letters exists. so maybe add a check
$tw.wiki.each(function(tiddler, title) {
if(title.length >= 4 && title.substr(-4) === ".htm") {
$tw.wiki.deleteTiddler(title);
}
});
-Felix
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.