This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git

commit ec4cb612d1cda09907c88f2c5a06cc3cb7a839ef
Author: Nick Burch <[email protected]>
AuthorDate: Tue Jul 5 11:22:59 2022 +0100

    WebVTT is text based, so check for both line endings on the BOM cases like 
we do for no-BOM
---
 tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml 
b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
index 7b4ac0d7d..9b24ae3f4 100644
--- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
+++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
@@ -7004,11 +7004,14 @@
       <!-- With Byte Order Mark -->
       <match value="0xfeff" offset="0">
          <match value="WEBVTT\r" type="string" offset="2"/>
+         <match value="WEBVTT\n" type="string" offset="2"/>
       </match>
       <match value="0xfeff" offset="0">
+         <match value="WEBVTT\r" type="string" offset="2"/>
          <match value="WEBVTT\n" type="string" offset="2"/>
       </match>
       <match value="0xefbbbf" offset="0">
+         <match value="WEBVTT\r" type="string" offset="3"/>
          <match value="WEBVTT\n" type="string" offset="3"/>
       </match>
       <!-- Common Header -->

Reply via email to