consumet.ts icon indicating copy to clipboard operation
consumet.ts copied to clipboard

fix(vidcloud): ensure isM3U8 property detects URLs ending with -m3u8 correctly

Open 2004durgesh opened this issue 1 year ago • 0 comments

What kind of change does this PR introduce? This PR introduces a bug fix by updating the isM3U8 check to correctly detect M3U8 URLs, including those ending with 'm3u8'.

Did you add tests for your changes? No If relevant, did you update the documentation? No Summary previously due to isM3U8: f2.includes('.m3u8') below error was occuring image

so added endsWith('m3u8') to further check if the url ends with m3u8 extension, resulting in image

Other information

2004durgesh avatar Oct 03 '24 15:10 2004durgesh