summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Pattern.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Pattern.coffee b/src/Pattern.coffee
index e65fa79..82f96e7 100644
--- a/src/Pattern.coffee
+++ b/src/Pattern.coffee
@@ -134,7 +134,7 @@ class Pattern
count = 0
while @regex.test(str) and (limit is 0 or count < limit)
@regex.lastIndex = 0
- str = str.replace @regex, ''
+ str = str.replace @regex, replacement
count++
return [str, count]