| 1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 7 3 1 2 | 'use strict';
// check for colons
module.exports = function checkForColon( line, areWeInAHash ) {
if ( typeof areWeInAHash === 'undefined' || typeof line === 'undefined' ) { return; }
if ( areWeInAHash === false && line.indexOf(': ') !== -1 ) {
return true;
}
else {
return false;
}
} |