englishSongbookParser.js
// Clean any un-needed characters
Clean any un-needed characters
Clean any un - needed characters
function cleanString(input) {
		input = input.replace(/([\t])/g, '');
		input = input.replace(/([\r])/g, '');
		input = input.replace(/^\s*[\r\n]/gm)
		return input;
 	}
function cleanString ( input ) { input = input . replace ( / ([\t]) / g , '' ) ; input = input . replace ( / ([\r]) / g , '' ) ; input = input . replace ( / ^\s*[\r\n] / gm ) return input ; }
Clean any un-needed characters
Clean any un - needed characters
// TODO strip out all '/t' // this fixes the splitter, I don't know why // TODO remove empty line? no idea if really working // var output = '' // for (var i=0; i<input.length; i++) { //  if (input.charCodeAt(i) <= 127) { //    output += input.charAt(i); //  } // } // return output;