We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fdd937 commit 16cf4c3Copy full SHA for 16cf4c3
sources/net.sf.j2s.java.core/src/java/lang/String.js
@@ -23,11 +23,11 @@ String.prototype.$replace = function (c1, c2) {
23
};
24
String.prototype.replaceAll = function (exp, str) {
25
var regExp = new RegExp (exp, "gm");
26
- return this.replace (regExp, str);
+ return this.replace (regExp, str.replace (/\\\\/gm, "\\"));
27
28
String.prototype.replaceFirst = function (exp, str) {
29
var regExp = new RegExp (exp, "m");
30
31
32
String.prototype.matches = function (exp) {
33
0 commit comments