Skip to content

Commit

Permalink
fix skip-dir issue on windows (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Apr 27, 2023
1 parent 50ff7a0 commit c016c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func extractExternalResources(plug *plugin.Plugin, symbol string) ([]interface{}
func (r *Runner) isFileSkipped(p common.IParser, file string) bool {
relPath, _ := filepath.Rel(r.dir, file)
for _, sp := range r.skipDirs {
if strings.HasPrefix(r.dir+"/"+relPath, sp) {
if strings.HasPrefix(filepath.Join(r.dir, relPath), sp) {
return true
}
}
Expand Down

0 comments on commit c016c66

Please sign in to comment.