We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1976b52 commit 0c9f8ffCopy full SHA for 0c9f8ff
lib/results.js
@@ -4,7 +4,7 @@ var through = require('through');
4
var resumer = require('resumer');
5
var inspect = require('object-inspect');
6
var hasOwn = Object.prototype.hasOwnProperty;
7
-var invalidYaml = RegExp.prototype.test.bind(/\:|\-|\?/);
+var yamlIndicators = /\:|\-|\?/;
8
var nextTick = typeof setImmediate !== 'undefined'
9
? setImmediate
10
: process.nextTick
@@ -188,3 +188,7 @@ function getNextTest (results) {
188
function has (obj, prop) {
189
return hasOwn.call(obj, prop);
190
}
191
+
192
+function invalidYaml (str) {
193
+ return yamlIndicators.test(str);
194
+}
0 commit comments