Found it ! I had to use "escapeRegExp()" when getting the value of section. Unless that there was a bug when processing a "\n" inside the section.
Now it works. On 28 juil, 20:50, FrD <sokus...@gmail.com> wrote: > Hello, > > I'm trying to do some simple work in javascript :-) > ... > FrD -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.