add: log.debug("doc=" + doc + ", commandRegexp=" + commandRegexp); 
context: function parse(testCase, source) {	var commandLoadPattern = options.commandLoadPattern;	var commandRegexp = new RegExp(commandLoadPattern, 'i');	var commentRegexp = new RegExp("^" + options.commentLoadPattern, 'i');	var doc = source;	var result;	var commands = [];	var command;	var first = true;	var i;	//var vars = this.options.commandLoadVars;	while (true) {		if ((result = commandRegexp.exec(doc)) != null) {			if (first) {				// treat text before the first match as header				i = doc.indexOf(result[0]);				testCase.header = doc.substr(0, i);				doc = doc.substr(i);			}			//log.debug("result=" + result);			command = new Command();			eval(options.commandLoadScript);			convertText(command, decodeText);			commands.push(command);			doc = doc.substr(result[0].length);			if (first) {				commandRegexp = new RegExp("^" + commandLoadPattern, 'i');			}			first = false;		} else if ((result = commentRegexp.exec(doc)) != null) {			if (first) {				// no command found, but found a comment				break;			}			var comment = new Comment();			eval(options.commentLoadScript);			commands.push(comment);			doc = doc.substr(result[0].length);		} else {			break;		}	}	if (commands.length > 0) {		testCase.footer = doc;		//log.debug("header=" + this.header);		//log.debug("footer=" + this.footer);		//log.debug("commands.length=" + commands.length);		testCase.commands = commands;	} else {		throw "no command found";	}}
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/697e11e20a178e7a4685ec85bc8ac8406754eafd/html.js/buggy/src/content/formats/html.js