It replaces only the first instance of the forvar .. So i tried to modify
the code of $:/plugins/tesseract/forloop/forloop.js
(https://ibnishak.github.io/Tesseract/pluginsandmacros/index.html#Simple%20for-loop%20macro)
for (; i <= max; i += iter) {
textBuffer.push(text.replace(forvar, i));
}
to
for (; i <= max; i += iter) {
textBuffer.push(text.replace(/forvar/gi, i));
}
However, even then the code doesnt do a global replace ... any ideas?
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/e6093e9f-6b66-4db3-b3f7-d506ea8b1766%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.