diff options
Diffstat (limited to 'lib/Pattern.js')
-rw-r--r-- | lib/Pattern.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Pattern.js b/lib/Pattern.js index 15a8ce9..3cca4d3 100644 --- a/lib/Pattern.js +++ b/lib/Pattern.js @@ -1,4 +1,4 @@ -// Generated by CoffeeScript 1.10.0 +// Generated by CoffeeScript 1.12.4 var Pattern; Pattern = (function() { @@ -106,7 +106,7 @@ Pattern = (function() { count = 0; while (this.regex.test(str) && (limit === 0 || count < limit)) { this.regex.lastIndex = 0; - str = str.replace(this.regex, ''); + str = str.replace(this.regex, replacement); count++; } return [str, count]; |