[File] [PATCH] Tighten dataone format matching

Christos Zoulas christos at zoulas.com
Mon Apr 18 21:38:25 UTC 2022


Committed, thanks!

christos

> On Apr 13, 2022, at 4:35 PM, Dirk Müller <dirk at dmllr.de> wrote:
> 
> * regex rules need literal dots escaped, otherwise they are considered
> any character
> * literal search strings can be searched using search rather than the
> much more expensive regex
> * use standard xml declaration search as used in other format matchers
> * only match the first 1024 bytes, the information we look for should
> be in the very first tag.
> * remove unnecessary parentheses
> <0001-Tighten-dataone-format-matching.patch>-- 
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file



More information about the File mailing list