Skip to content

Commit 230e46b

Browse files
author
en-ken
committed
fix: fixed regex a little.
1 parent 43cb87e commit 230e46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kadai2/en-ken/imgcnv/dirpath.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func searchFiles(dirPath string, ext string) ([]string, error) {
3535
result = append(result, paths...)
3636
} else {
3737
// ignore error
38-
isMatch, _ := filepath.Match("*"+ext, file.Name())
38+
isMatch, _ := filepath.Match("*."+ext, file.Name())
3939
if isMatch {
4040
result = append(result, path)
4141
}

0 commit comments

Comments
 (0)