Rewrite `findtext.lua'.