Skip to content

Commit

Permalink
Improve comments for vtt checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrHovhannisyan committed Aug 15, 2024
1 parent 294c6be commit daa1b38
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1140,11 +1140,11 @@ export class FileTypeParser {
}

if (
this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x00]) // EOF
|| this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x0A]) // LF
|| this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x0D]) // CR
|| this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x09]) // Tab
|| this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x20]) // Space
this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x00]) // WEBVTT<EOF>
|| this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x0A]) // WEBVTT<LF>
|| this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x0D]) // WEBVTT<CR>
|| this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x09]) // WEBVTT<Tab>
|| this.check([0x57, 0x45, 0x42, 0x56, 0x54, 0x54, 0x20]) // WEBVTT<Space>
) {
return {
ext: 'vtt',
Expand Down

0 comments on commit daa1b38

Please sign in to comment.