Content deleted Content added
regexp fix alone |
+ breakout clause |
||
Line 194:
function wrapTimestamps() {
var prefixNode;
var loopEscapeCounter = 0; // we'll break out if the while loop runs more than 10,000 times to avoid a browser hang
while ((prefixNode = iter.nextNode())) {
if (loopEscapeCounter++ > 10000) break; // escape infinite loop
var result = LocalComments.parseRegExp.exec(prefixNode.data);
if (!result) continue;
|