From 0ab019e5abc444091a81073e09fd0edcd4489a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sun, 28 May 2017 09:33:52 +0100 Subject: [PATCH] Remove special char from XML --- bin/cli.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/cli.js b/bin/cli.js index 7e7cfb9..a76b83d 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -111,6 +111,7 @@ if (cli.flags.reporter && cli.flags.reporter !== 'json' && cli.flags.reporter != xmlOutput = xmlOutput.replace(/(<[a-zA-Z]*>[^<]*)\n([^<]*<\/[a-zA-Z]*>)/g, '$1$2'); xmlOutput = xmlOutput.replace(/\0/g, ''); xmlOutput = xmlOutput.replace(/\uFFFF/g, ''); + xmlOutput = xmlOutput.replace(/\u0002/g, ''); console.log(xmlOutput); break;