Skip to content

Commit

Permalink
fix IsRegisteredAsDirectory method (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 22, 2023
1 parent 2e8be96 commit 84ee9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/store/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (idx *Index) IsRegisteredAsDirectory(dirName string) bool {
return false
}

dirRegexp := regexp.MustCompile(fmt.Sprintf(`.*%s\/.+`, dirName))
dirRegexp := regexp.MustCompile(fmt.Sprintf(`%s\/.+`, dirName))

left := 0
right := int(idx.EntryNum)
Expand Down

0 comments on commit 84ee9a7

Please sign in to comment.