From fd629389459a5aab585e090d8ebc0bfdba4a439b Mon Sep 17 00:00:00 2001 From: kawasin73 Date: Mon, 16 Mar 2026 23:45:30 +0900 Subject: [PATCH] docs(policy): remove trailing space from commandPrefix examples (#22264) Co-authored-by: Jack Wotherspoon --- docs/reference/policy-engine.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reference/policy-engine.md b/docs/reference/policy-engine.md index 9b63c89f62..495a4584e1 100644 --- a/docs/reference/policy-engine.md +++ b/docs/reference/policy-engine.md @@ -60,7 +60,7 @@ command. ```toml [[rule]] toolName = "run_shell_command" -commandPrefix = "git " +commandPrefix = "git" decision = "ask_user" priority = 100 ``` @@ -264,7 +264,7 @@ argsPattern = '"command":"(git|npm)' # (Optional) A string or array of strings that a shell command must start with. # This is syntactic sugar for `toolName = "run_shell_command"` and an `argsPattern`. -commandPrefix = "git " +commandPrefix = "git" # (Optional) A regex to match against the entire shell command. # This is also syntactic sugar for `toolName = "run_shell_command"`. @@ -321,7 +321,7 @@ This rule will ask for user confirmation before executing any `git` command. ```toml [[rule]] toolName = "run_shell_command" -commandPrefix = "git " +commandPrefix = "git" decision = "ask_user" priority = 100 ```