scratch – Diff between revs 75 and 125

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 75 Rev 125
Line 1... Line 1...
1 // Generated by CoffeeScript 1.10.0 1 // Generated by CoffeeScript 1.12.4
2 var Pattern; 2 var Pattern;
Line 3... Line 3...
3   3  
4 Pattern = (function() { 4 Pattern = (function() {
Line 104... Line 104...
104 } 104 }
105 this.regex.lastIndex = 0; 105 this.regex.lastIndex = 0;
106 count = 0; 106 count = 0;
107 while (this.regex.test(str) && (limit === 0 || count < limit)) { 107 while (this.regex.test(str) && (limit === 0 || count < limit)) {
108 this.regex.lastIndex = 0; 108 this.regex.lastIndex = 0;
109 str = str.replace(this.regex, ''); 109 str = str.replace(this.regex, replacement);
110 count++; 110 count++;
111 } 111 }
112 return [str, count]; 112 return [str, count];
113 }; 113 };