[File] [PATCH] Tighten dataone format matching
Dirk Müller
dirk at dmllr.de
Wed Apr 13 20:35:41 UTC 2022
* 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Tighten-dataone-format-matching.patch
Type: text/x-patch
Size: 3142 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20220413/d75dd2c1/attachment.bin>
More information about the File
mailing list