Skip to content

Commit 144723f

Browse files
committed
文件名过滤由包含.md变为以.md为结尾
1 parent 3b13fb5 commit 144723f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (self *Visitor) visit(path string, f os.FileInfo, err error) error {
2121
} else if (f.Mode() & os.ModeSymlink) > 0 {
2222
return nil
2323
} else {
24-
if strings.Contains(f.Name(), ".md") {
24+
if strings.HasSuffix(f.Name(), ".md") {
2525
fmt.Println(f)
2626
file, err := os.Open(f.Name())
2727
if err != nil {

0 commit comments

Comments
 (0)