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.
2 parents a4b253d + 37e9d25 commit 067074dCopy full SHA for 067074d
lib/chai/utils/getMessage.js
@@ -43,9 +43,9 @@ module.exports = function (obj, args) {
43
if(typeof msg === "function") msg = msg();
44
msg = msg || '';
45
msg = msg
46
- .replace(/#{this}/g, function () { return objDisplay(val); })
47
- .replace(/#{act}/g, function () { return objDisplay(actual); })
48
- .replace(/#{exp}/g, function () { return objDisplay(expected); });
+ .replace(/#\{this\}/g, function () { return objDisplay(val); })
+ .replace(/#\{act\}/g, function () { return objDisplay(actual); })
+ .replace(/#\{exp\}/g, function () { return objDisplay(expected); });
49
50
return flagMsg ? flagMsg + ': ' + msg : msg;
51
};
0 commit comments