Explorar o código

Remove special char from XML

Gaël Métais %!s(int64=8) %!d(string=hai) anos
pai
achega
0ab019e5ab
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      bin/cli.js

+ 1 - 0
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;