Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Escape the vertical bar in the regex

  • Loading branch information...
commit 831536dc5f645a823362bce5ae7e8d07e4b13e00 1 parent 6947358
@dump247 dump247 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/reporters/teamcity.js
View
2  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, "|[")
Please sign in to comment.
Something went wrong with that request. Please try again.