Blog
getMatches(str, exp)
I recently encountered two troubling bugs with jPaq’s String.prototype.indexOfPattern() function. In order to fix it, I ended up exploring the powerful String.prototype.replace() function, exploiting the parameter passed into the callback function. I already knew that the matched text and sub-groups were passed into the callback function. The thing that I Read more…