Skip to content

Commit

Permalink
Merge pull request #58 from mburumaxwell/fix-vcard
Browse files Browse the repository at this point in the history
Remove line ending from VCard signature
  • Loading branch information
neilharvey authored Oct 4, 2023
2 parents 35ff4bf + a855e0d commit 16c88a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FileSignatures/Formats/Vcard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
/// </summary>
public class Vcard : FileFormat
{
public Vcard() : base(new byte[] { 0x42, 0x45, 0x47, 0x49, 0x4E, 0x3A, 0x56, 0x43, 0x41, 0x52, 0x44, 0x0D, 0x0A }, "text/vcard", "vcf")
// 0x0D, 0x0A (\r\n) combinations are omitted because the text writer can use any line ending style
public Vcard() : base(new byte[] { 0x42, 0x45, 0x47, 0x49, 0x4E, 0x3A, 0x56, 0x43, 0x41, 0x52, 0x44 }, "text/vcard", "vcf")
{
}
}
Expand Down

0 comments on commit 16c88a2

Please sign in to comment.