diff --git a/commands/hookify-help.md b/commands/hookify-help.md index 1fb37234f..da37dfa3c 100644 --- a/commands/hookify-help.md +++ b/commands/hookify-help.md @@ -126,7 +126,7 @@ the warning to stderr. ### Pattern Tips -- use JavaScript regex syntax; matching is case-insensitive +- use JavaScript regex syntax; `regex_match` is case-insensitive while literal operators are case-sensitive - for `bash`, match against the full command string - for `file`, a simple pattern matches the full file path - for changed text, use a `content`, `new_text`, or `old_text` condition diff --git a/tests/docs/hookify-runtime-docs.test.js b/tests/docs/hookify-runtime-docs.test.js index 12b0e62d1..98378c9cc 100644 --- a/tests/docs/hookify-runtime-docs.test.js +++ b/tests/docs/hookify-runtime-docs.test.js @@ -56,6 +56,8 @@ function runTests() { const skill = read('skills/hookify-rules/SKILL.md'); assert.ok(help.includes('simple `pattern` matches `file_path`')); + assert.ok(help.includes('`regex_match` is case-insensitive')); + assert.ok(help.includes('literal operators are case-sensitive')); assert.ok(skill.includes('Simple `event: file` patterns match `file_path`')); assert.ok(skill.includes('changed content requires explicit conditions')); })) passed++; else failed++;