Closed AleksandrHovhannisyan closed 4 days ago
That is in my opinion in scope.
Please note that we got the BOM covered in a generic way:
So ignore the magic numbers with the BOM field (EF BB BF
), those will be automatically covered.
I suggest to trigger on WEBVTT
, and possibly match the last character.
Thanks! That makes sense. I'll work on this and put up a PR.
First, thanks so much for this package! We've been using it at work to validate files uploaded by users and it works as expected for the majority of our use cases. There is one edge case where it doesn't currently validate WebVTT files (MIME type
text/vtt
, for captions shown in a video element's<track>
).The magic numbers for VTT files are as follows according to the W3 document titled WebVTT: The Web Video Text Tracks Format:
Would it be possible to support this? If so, I'd be happy to help or put in a PR.