diff --git a/extensions.go b/extensions.go index 4996ea3..6872af6 100644 --- a/extensions.go +++ b/extensions.go @@ -1,9 +1,6 @@ package main -import ( - "path/filepath" - "strings" -) +import "path/filepath" var extensions = map[string]bool{ ".htm": true, @@ -17,5 +14,6 @@ func isMarkupFile(f string) bool { } func isHTMLFile(f string) bool { - return strings.HasSuffix(f, ".html") || strings.HasSuffix(f, ".htm") + e := filepath.Ext(f) + return e == ".html" || e == ".htm" }