Skip to content

Simplify path matching algorithm#2

Merged
feds01 merged 1 commit intomainfrom
simplify/path-matches
Apr 2, 2025
Merged

Simplify path matching algorithm#2
feds01 merged 1 commit intomainfrom
simplify/path-matches

Conversation

@feds01
Copy link
Copy Markdown
Owner

@feds01 feds01 commented Apr 2, 2025

When loading the codeowners file, avoid keeping track of the /
prefix on paths.

Similarly, when scanning for paths, we always strip the base path
prefix from the path before matching.

This means that we can both simplify the regex matching, and
avoid having to inject / prefixes in the regexes when scanning
for paths across the workspace.

When loading the codeowners file, avoid keeping track of the `/`
prefix on paths.

Similarly, when scanning for paths, we always strip the base path
`prefix` from the path before matching.

This means that we can both simplify the regex matching, and
avoid having to inject `/` prefixes in the regexes when scanning
for paths across the workspace.
@feds01 feds01 self-assigned this Apr 2, 2025
@feds01 feds01 merged commit b052efb into main Apr 2, 2025
1 check passed
@feds01 feds01 deleted the simplify/path-matches branch March 9, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant