Index: src/string.js |
diff --git a/src/string.js b/src/string.js |
index d9d6d6981194963b3a4709d9daace07b45718bf4..3ccad9a21a9d445217d639b602191f6e0a3f7c65 100644 |
--- a/src/string.js |
+++ b/src/string.js |
@@ -304,6 +304,8 @@ function ExpandReplacement(string, subject, matchInfo, builder) { |
builder.add('$'); |
--position; |
} |
+ } else { |
+ builder.add('$'); |
} |
} else { |
builder.add('$'); |