☕️ Classic, reliable, trusted test framework for Node.js and the browser
Escape the vertical bar in the regex
Cory Thomas831536dc5f64
diff --git a/lib/reporters/teamcity.js b/lib/reporters/teamcity.jsindex fab35092..31c46e19 100644--- a/lib/reporters/teamcity.js+++ b/lib/reporters/teamcity.js@@ -52,7 +52,7 @@ function Teamcity(runner) {*/function escape(str) {- return str.replace(/|/g, "||")+ return str.replace(/\|/g, "||").replace(/\n/g, "|n").replace(/\r/g, "|r").replace(/\[/g, "|[")