refactor(config): use non-capture groups for allowlists (#1735)

Non-capture groups appear to be measurably faster.
This commit is contained in:
Richard Gomez authored and GitHub committed 2025-01-28 19:54:20 -06:00
1 parent 36c52c6b73
commit 7fc11bb264
7 files changed
+209 -177

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ var githubAllowlist = []config.Allowlist{
{
Paths: []*regexp.Regexp{
// https://github.com/octokit/auth-token.js/?tab=readme-ov-file#createtokenauthtoken-options
regexp.MustCompile(`(^|/)@octokit/auth-token/README\.md$`),
regexp.MustCompile(`(?:^|/)@octokit/auth-token/README\.md$`),
},
},
}