Skip to content

Commit

Permalink
fixed xrayPocs功能存在问题 #72 2022-08-03
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Aug 3, 2022
1 parent b5a4576 commit 6285b3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pocs_yml/utils/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ func SelectPoc(Pocs embed.FS, pocname string) []string {
}
var foundFiles []string
for _, entry := range entries {
if strings.HasPrefix(entry.Name(), pocname+"-") {
//if strings.HasPrefix(entry.Name(), pocname+"-") {
if -1 < strings.Index(entry.Name(), pocname) {
foundFiles = append(foundFiles, entry.Name())
}
}
Expand Down

0 comments on commit 6285b3d

Please sign in to comment.