diff --git a/lib/parser.js b/lib/parser.js index c5a0dd6..1d0a419 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -43,7 +43,7 @@ exports.parse = function (sdp) { , location = session; // points at where properties go under (one of the above) // parse lines we understand - sdp.split('\r\n').filter(validLine).forEach(function (l) { + sdp.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function (l) { var type = l[0]; var content = l.slice(2); if (type === 'm') {