Forloop by ibnishak.github.io

46 views
Skip to first unread message

balu chandra

unread,
Apr 29, 2018, 9:35:59 AM4/29/18
to tiddl...@googlegroups.com
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));
        }

with

        for (; i <= max; i += iter) {
            textBuffer.push(text.replace(/forvar/gi, i));
        }

However, even then the code doesnt do a global replace ... any ideas?


Mat

unread,
Apr 29, 2018, 9:57:52 AM4/29/18
to TiddlyWiki
Such outright programming matters is better discussed in the dev group.

<:-)

balu chandra

unread,
Apr 29, 2018, 10:01:27 AM4/29/18
to TiddlyWiki
okays :)
Reply all
Reply to author
Forward
0 new messages