We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d28d1 commit 071acc3Copy full SHA for 071acc3
docker_compose_handler.go
@@ -5,6 +5,12 @@ import (
5
)
6
7
// dcLogsPrefixRe parses out a prefix like 'web_1 | ' from docker-compose
8
+// The regex exists of five parts:
9
+// 1. An optional color terminal escape sequence
10
+// 2. The name of the service
11
+// 3. Any number of spaces, and a pipe symbol
12
+// 4. An optional color reset escape sequence
13
+// 5. The rest of the line
14
var dcLogsPrefixRe = regexp.MustCompile("^(?:\x1b\\[\\d+m)?(?P<service_name>[a-zA-Z0-9._-]+)\\s+\\|(?:\x1b\\[0m)? (?P<rest_of_line>.*)$")
15
16
type handler interface {
0 commit comments