Skip to content

Commit

Permalink
fix: local module path matching
Browse files Browse the repository at this point in the history
Signed-off-by: Fernandez Ludovic <[email protected]>
  • Loading branch information
ldez committed Apr 2, 2024
1 parent 4f7ff3c commit 7cfdb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/section/local_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type LocalModule struct {
}

func (m *LocalModule) MatchSpecificity(spec *parse.GciImports) specificity.MatchSpecificity {
if strings.HasPrefix(spec.Path, m.Path) {
if spec.Path == m.Path || strings.HasPrefix(spec.Path, m.Path+"/") {
return specificity.LocalModule{}
}

Expand Down

0 comments on commit 7cfdb7f

Please sign in to comment.