extractToolName extracts a tool name from a log line
(line string)
| 117 | |
| 118 | // extractToolName extracts a tool name from a log line |
| 119 | func extractToolName(line string) string { |
| 120 | // Try to extract tool name from various patterns |
| 121 | for _, pattern := range toolNamePatterns { |
| 122 | if matches := pattern.FindStringSubmatch(line); len(matches) > 1 { |
| 123 | return strings.TrimSpace(matches[1]) |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | return "" |
| 128 | } |
no outgoing calls