irt.org FAQ Knowledge Base Q1018
William Finke on November 23, 1999 at 09:20:06:
I don't see how the statement:
if ((!i) && (text != string.substring(0,txtLength))) return string;
in replace() can ever be true. (!i) means a match was found at the start, and then it checks to see if a match was *not* found at the start. You might want to check with the author and either correct or clarify its use in the pertinent FAQs.