Add experimental allowlist optimizations (#1731)

* feat(allowlist): optimization experiments

* refactor(allowlist): remove useOptimizations flag

* refactor(allowlist): simplify Validate() with helper func

* refactor(config): replace global feature flag
This commit is contained in:
Richard Gomez authored and GitHub committed 2025-06-08 10:33:05 -05:00
1 parent 79068b35e5
commit 9faaa4a09c
9 files changed
+363 -42

No files matched your search

+3
View File
@@ -2275,6 +2275,9 @@ func TestDetectRuleAllowlist(t *testing.T) {
let password = 'Summer2024!';`
for name, tc := range cases {
t.Run(name, func(t *testing.T) {
err := tc.allowlist.Validate()
require.NoError(t, err)
rule := config.Rule{
RuleID: "test-rule",
Regex: regexp.MustCompile(`Summer2024!`),