summaryrefslogtreecommitdiff
path: root/internal/regex
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-17 14:57:41 +0300
committerPaul Buetow <paul@buetow.org>2025-06-17 14:57:41 +0300
commitc9c037275e4a5f2c8c87d736f3521c0817770798 (patch)
tree80911b418f51dfc903dd74e769f6b2120b3fdee3 /internal/regex
parentb2cb4ca0563cc73af20460fe3b319263a96a6989 (diff)
Fix channelless mode for DTail operations
- Exclude TailClient operations from channelless processing to ensure proper real-time file monitoring - Add comprehensive MapReduce detection for both cat and tail commands with MAPREDUCE patterns and noop regex - Add IsNoop() method to Regex type for proper noop regex detection in CSV logformat operations - Update build instructions and testing guidance in CLAUDE.md All integration tests now pass with channelless mode enabled. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/regex')
-rw-r--r--internal/regex/regex.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/regex/regex.go b/internal/regex/regex.go
index eb6e1b3..b2ea201 100644
--- a/internal/regex/regex.go
+++ b/internal/regex/regex.go
@@ -23,6 +23,11 @@ func (r Regex) String() string {
r.regexStr, r.flags, r.initialized, r.re == nil)
}
+// IsNoop returns true if this regex is a noop regex
+func (r Regex) IsNoop() bool {
+ return len(r.flags) > 0 && r.flags[0] == Noop
+}
+
// NewNoop is a noop regex (doing nothing).
func NewNoop() Regex {
return Regex{