Skip to content

Commit

Permalink
Merge pull request #268 from cdnjs/sven/checker-woff2
Browse files Browse the repository at this point in the history
checker: show files includes woff2
  • Loading branch information
xtuc authored Jul 31, 2023
2 parents c5b1063 + 900e243 commit f63aa82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/checker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func filewalker(basedir string, files *[]string) filepath.WalkFunc {
return errors.Wrap(err, "failed to walk fs")
}
ext := filepath.Ext(path)
if ext == ".gz" {
if ext == ".gz" || ext == ".woff2" {
path = strings.ReplaceAll(path, ".gz", "")
path = strings.ReplaceAll(path, basedir+"/", "")
*files = append(*files, path)
Expand Down

0 comments on commit f63aa82

Please sign in to comment.