Strip carriage returns when parsing manifest lines.
Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -117,6 +117,10 @@ | ... | @@ -117,6 +117,10 @@ |
117 | return; | 117 | return; |
118 | } | 118 | } |
119 | 119 | ||
120 | //strip off any carriage returns here so the regex matching | ||
121 | //doesn't have to account for them. | ||
122 | line = line.replace('\r',''); | ||
123 | |||
120 | // Tags | 124 | // Tags |
121 | match = /^#EXTM3U/.exec(line); | 125 | match = /^#EXTM3U/.exec(line); |
122 | if (match) { | 126 | if (match) { | ... | ... |
-
Please register or sign in to post a comment