if you define an extra function for array.
eg:
Array.prototype.contains = function(obj) {
var i = this.length;
while (i--) {
if (this[i] === obj) {
return true;
}
}
return false;
};
the parser crash on line
/node_modules/yamlparser/yamlparser.js:412
.
function preProcess(src) {
for(var i in lines) {
if(m = lines[i].match(r)) {
function(obj) .... has no method "match"
Suggestion (not tested):
use
or add a test with