Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed String.specialChar

  • Loading branch information...
commit dcef6ca77c3028f20d2c2b38135f186bedb528fc 1 parent 8c3e8ce
@smith smith authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/common.js
View
4 src/common.js
@@ -7,7 +7,7 @@ var JsUnitTest = {
if (typeof object == "string") {
var useDoubleQuotes = arguments[1];
var escapedString = this.gsub(object, /[\x00-\x1f\\]/, function(match) {
- var character = String.specialChar[match[0]];
+ var character = match[0];
return character ? character : '\\u00' + match[0].charCodeAt().toPaddedString(2, 16);
});
if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') + '"';
@@ -188,4 +188,4 @@ JsUnitTest.gsub.prepareReplacement = function(replacement) {
if (typeof replacement == "function") return replacement;
var template = new Template(replacement);
return function(match) { return template.evaluate(match) };
-};
+};
Please sign in to comment.
Something went wrong with that request. Please try again.