lib/srt.js
function(filedata, callback) {
        var lines;
        lines = filedata.toString().split(/(?:\r\n|\r|\n)/gm);
        if (module.exports.verify(lines)) {
            return callback(undefined, lines);
        }
        return callback('INVALID_SRT_FORMAT');
    }
function(filedata, callback) {
        var lines;
        lines = filedata.toString().split(/(?:\r\n|\r|\n)/gm);
        if (module.exports.verify(lines)) {
            return callback(undefined, lines);
        }
        return callback('INVALID_SRT_FORMAT');
    }
function ( filedata , callback ) { var lines ; lines = filedata . toString ( ) . split ( / (?:\r\n|\r|\n) / gm ) ; if ( module . exports . verify ( lines ) ) { return callback ( undefined , lines ) ; } return callback ( 'INVALID_SRT_FORMAT' ) ; }
Parses srt captions, errors if format is invalid
@function
@param {string} filedata - String of caption data
@param {callback} callback - function to call when complete
@public
Parses srt captions errors if format is invalid