{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "php -r \"\n\\$pattern = '\/https?:\\\\\/\\\\\/[^:]+:[^@]+@\/i';\n\n\\$test_lines = [\n \\\"private const string API_BASE_URL = 'https:\/\/api.anthropic.com\/v1';\\\",\n \\\"return self::get('OLLAMA_HOST', 'http:\/\/localhost:11434');\\\",\n \\\"return self::get('QDRANT_HOST', 'http:\/\/localhost:6333');\\\",\n];\n\nforeach (\\$test_lines as \\$line) {\n \\$matches = preg_match(\\$pattern, \\$line);\n echo substr(\\$line, 0, 60) . \\\"... => \\\" . (\\$matches ? 'MATCH' : 'NO MATCH') . \\\"\\\\n\\\";\n}\n\"",
"description": "Test regex on full lines"
}
}
{
"tool_response": {
"stdout": "private const string API_BASE_URL = 'https:\/\/api.anthropic.c... => NO MATCH\nreturn self::get('OLLAMA_HOST', 'http:\/\/localhost:11434');... => NO MATCH\nreturn self::get('QDRANT_HOST', 'http:\/\/localhost:6333');... => NO MATCH",
"stderr": "",
"interrupted": false,
"isImage": false
}
}