diff --git a/MagicBytesValidator/Formats/Pdf.cs b/MagicBytesValidator/Formats/Pdf.cs index 358f863..33f0276 100644 --- a/MagicBytesValidator/Formats/Pdf.cs +++ b/MagicBytesValidator/Formats/Pdf.cs @@ -12,7 +12,7 @@ public Pdf() : base( StartsWith([0x25, 0x50, 0x44, 0x46, 0x2D]) .EndsWithAnyOf( [ - [0x0A, 0x25, 0x25, 0x45, 0x4F, 0x46], + [0x25, 0x25, 0x45, 0x4F, 0x46], [0x0A, 0x25, 0x25, 0x45, 0x4F, 0x46, 0x0A], [0x0A, 0x25, 0x25, 0x45, 0x4F, 0x46, 0x0A, 0x20], [0x0D, 0x0A, 0x25, 0x25, 0x45, 0x4F, 0x46, 0x0D, 0x0A], diff --git a/MagicBytesValidator/MagicBytesValidator.csproj b/MagicBytesValidator/MagicBytesValidator.csproj index 9bf4e43..550c7bf 100644 --- a/MagicBytesValidator/MagicBytesValidator.csproj +++ b/MagicBytesValidator/MagicBytesValidator.csproj @@ -4,7 +4,7 @@ MagicBytesValidator traperto GmbH Validate files based on mime types, file extensions and magic byte sequences. - 2.1.4 + 2.1.5 Members of traperto GmbH https://github.com/Traperto/magic-bytes-validator/blob/main/README.md mime mimetype mimetypes magic magicbyte magicbytes extension extensions file diff --git a/README.md b/README.md index 9d19812..54b123f 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,16 @@ The existing `IFileType`s can be expanded in various ways. - Install nuget package into your project: ```powershell -Install-Package MagicBytesValidator -Version 2.1.3 +Install-Package MagicBytesValidator -Version 2.1.5 ``` ```bash -dotnet add package MagicBytesValidator --version 2.1.3 +dotnet add package MagicBytesValidator --version 2.1.5 ``` - Reference in your csproj: ```xml - + ``` ### How to use it?