mirror of
https://github.com/openai/codex.git
synced 2026-04-26 15:45:02 +00:00
feat: tokenizing whole strings in match and not_match
This commit is contained in:
@@ -112,8 +112,11 @@ fn match_and_not_match_examples_are_enforced() {
|
||||
let policy_src = r#"
|
||||
prefix_rule(
|
||||
pattern = ["git", "status"],
|
||||
match = [["git", "status"]],
|
||||
not_match = [["git", "--config", "color.status=always", "status"]],
|
||||
match = [["git", "status"], "git status"],
|
||||
not_match = [
|
||||
["git", "--config", "color.status=always", "status"],
|
||||
"git --config color.status=always status",
|
||||
],
|
||||
)
|
||||
"#;
|
||||
let parser = PolicyParser::new("test.codexpolicy", policy_src);
|
||||
|
||||
Reference in New Issue
Block a user