mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
fix(tests): add heif exception in libvips < 8.8
This commit is contained in:
parent
69f1ab7767
commit
5bd2c1522e
3 changed files with 15 additions and 5 deletions
6
type.go
6
type.go
|
|
@ -6,6 +6,9 @@ import (
|
|||
"unicode/utf8"
|
||||
)
|
||||
|
||||
// ImageType represents an image type value.
|
||||
type ImageType int
|
||||
|
||||
const (
|
||||
// UNKNOWN represents an unknow image type value.
|
||||
UNKNOWN ImageType = iota
|
||||
|
|
@ -29,9 +32,6 @@ const (
|
|||
HEIF
|
||||
)
|
||||
|
||||
// ImageType represents an image type value.
|
||||
type ImageType int
|
||||
|
||||
var (
|
||||
htmlCommentRegex = regexp.MustCompile("(?i)<!--([\\s\\S]*?)-->")
|
||||
svgRegex = regexp.MustCompile(`(?i)^\s*(?:<\?xml[^>]*>\s*)?(?:<!doctype svg[^>]*>\s*)?<svg[^>]*>[^*]*<\/svg>\s*$`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue