Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #136 from xushiwei/q
Browse files Browse the repository at this point in the history
isPublicFrom: more strict
  • Loading branch information
xushiwei committed Jul 25, 2022
2 parents 75c12e5 + 4d70481 commit d101e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl/pkginfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func canPub(name string) bool {
// f, pubFrom are absolute paths
func isPublicFrom(f string, pubFrom []string) bool {
for _, from := range pubFrom {
if strings.HasSuffix(f, from) { // TODO: more strict
if f == from {
return true
}
}
Expand Down

0 comments on commit d101e25

Please sign in to comment.