Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MagicBytesValidator/Formats/Pdf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion MagicBytesValidator/MagicBytesValidator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PackageId>MagicBytesValidator</PackageId>
<Title>traperto GmbH</Title>
<Description>Validate files based on mime types, file extensions and magic byte sequences.</Description>
<Version>2.1.4</Version>
<Version>2.1.5</Version>
<Authors>Members of traperto GmbH</Authors>
<PackageProjectUrl>https://github.com/Traperto/magic-bytes-validator/blob/main/README.md</PackageProjectUrl>
<PackageTags>mime mimetype mimetypes magic magicbyte magicbytes extension extensions file
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<PackageReference Include="MagicBytesValidator" Version="2.1.3" />
<PackageReference Include="MagicBytesValidator" Version="2.1.5" />
```

### How to use it?
Expand Down
Loading