Skip to content

Commit

Permalink
refactor(images): heic -> heif
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Feb 10, 2019
1 parent 1edb141 commit 1784a9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions matchers/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
TypeJxr = newType("jxr", "image/vnd.ms-photo")
TypePsd = newType("psd", "image/vnd.adobe.photoshop")
TypeIco = newType("ico", "image/x-icon")
TypeHeic = newType("heic", "image/heic")
TypeHeif = newType("heif", "image/heif")
)

var Image = Map{
Expand All @@ -29,7 +29,7 @@ var Image = Map{
TypeJxr: Jxr,
TypePsd: Psd,
TypeIco: Ico,
TypeHeic: Heic,
TypeHeif: Heif,
}

func Jpeg(buf []byte) bool {
Expand Down Expand Up @@ -111,7 +111,7 @@ func Ico(buf []byte) bool {
buf[2] == 0x01 && buf[3] == 0x00
}

func Heic(buf []byte) bool {
func Heif(buf []byte) bool {
if !isobmff.IsISOBMFF(buf) {
return false
}
Expand Down

0 comments on commit 1784a9b

Please sign in to comment.