docs: clarify Hookify match case sensitivity

This commit is contained in:
Affaan Mustafa
2026-07-26 05:51:14 -04:00
parent a2a763c1ce
commit 1f1b765bc6
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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
+2
View File
@@ -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++;