Skip to content

Commit

Permalink
fix: local module path matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Apr 2, 2024
1 parent 4f7ff3c commit 9c45634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/section/local_module.go
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 9c45634

Please sign in to comment.