mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-13 13:17:55 +02:00
docs: clarify Hookify match case sensitivity
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user