d0f0fd06 by Tadej Novak

Properly parse CR+LF on Windows when generating manifests file

1 parent 12790e51
...@@ -299,7 +299,7 @@ module.exports = function(grunt) { ...@@ -299,7 +299,7 @@ module.exports = function(grunt) {
299 // translate this manifest 299 // translate this manifest
300 jsManifests += ' \'' + basename(filename, '.m3u8') + '\': ' + 300 jsManifests += ' \'' + basename(filename, '.m3u8') + '\': ' +
301 grunt.file.read(abspath) 301 grunt.file.read(abspath)
302 .split('\n') 302 .split(/\r\n|\n/)
303 303
304 // quote and concatenate 304 // quote and concatenate
305 .map(function(line) { 305 .map(function(line) {
......