Skip to content

Commit 1784a9b

Browse files
authored
refactor(images): heic -> heif
1 parent 1edb141 commit 1784a9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

matchers/image.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var (
1414
TypeJxr = newType("jxr", "image/vnd.ms-photo")
1515
TypePsd = newType("psd", "image/vnd.adobe.photoshop")
1616
TypeIco = newType("ico", "image/x-icon")
17-
TypeHeic = newType("heic", "image/heic")
17+
TypeHeif = newType("heif", "image/heif")
1818
)
1919

2020
var Image = Map{
@@ -29,7 +29,7 @@ var Image = Map{
2929
TypeJxr: Jxr,
3030
TypePsd: Psd,
3131
TypeIco: Ico,
32-
TypeHeic: Heic,
32+
TypeHeif: Heif,
3333
}
3434

3535
func Jpeg(buf []byte) bool {
@@ -111,7 +111,7 @@ func Ico(buf []byte) bool {
111111
buf[2] == 0x01 && buf[3] == 0x00
112112
}
113113

114-
func Heic(buf []byte) bool {
114+
func Heif(buf []byte) bool {
115115
if !isobmff.IsISOBMFF(buf) {
116116
return false
117117
}

0 commit comments

Comments
 (0)