Robots.js
function removeComments(line) {
	var commentStartIndex = line.indexOf('#');
	if (commentStartIndex > -1) {
		return line.substr(0, commentStartIndex);
	}

	return line;
}
function removeComments(line) {
	var commentStartIndex = line.indexOf('#');
	if (commentStartIndex > -1) {
		return line.substr(0, commentStartIndex);
	}

	return line;
}
function removeComments ( line ) { var commentStartIndex = line . indexOf ( '#' ) ; if ( commentStartIndex > - 1 ) { return line . substr ( 0 , commentStartIndex ) ; } return line ; }
Remove comments from lines

@param {string} line
@return {string}
@private
Remove comments from lines