☕️ Classic, reliable, trusted test framework for Node.js and the browser
Support all escape sequences in the teamcity reporter
Cory Thomas5d009c28cb9d
diff --git a/lib/reporters/teamcity.js b/lib/reporters/teamcity.jsindex 29282ff1..a8632238 100644--- a/lib/reporters/teamcity.js+++ b/lib/reporters/teamcity.js@@ -52,5 +52,13 @@ function Teamcity(runner) {*/function escape(str) {- return str.replace(/'/g, "|'");-}\ No newline at end of file+ return str.replace("|", "||")+ .replace("\n", "|n")+ .replace("\r", "|r")+ .replace("[", "|[")+ .replace("]", "|]")+ .replace("\u0085", "|x")+ .replace("\u2028", "|l")+ .replace("\u2029", "|p")+ .replace(/'/g, "|'");+}