We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78eb4ec commit ebeab96Copy full SHA for ebeab96
2 files changed
controller/scheduler/coreos.py
@@ -11,7 +11,7 @@
11
12
13
MATCH = re.compile(
14
- '(?P<app>[a-z0-9-]+)_?(?P<version>v[0-9]+)?\.?(?P<c_type>[a-z]+)?.(?P<c_num>[0-9]+)')
+ '(?P<app>[a-z0-9-]+)_?(?P<version>v[0-9]+)?\.?(?P<c_type>[a-z-_]+)?.(?P<c_num>[0-9]+)')
15
16
17
class UHTTPConnection(httplib.HTTPConnection):
logger/syslogd/syslogd.go
@@ -46,7 +46,7 @@ func fileExists(path string) (bool, error) {
46
}
47
48
func getLogFile(m *syslog.Message) (io.Writer, error) {
49
- r := regexp.MustCompile(`^.* ([-a-z0-9]+)\[[a-z0-9\.]+\].*`)
+ r := regexp.MustCompile(`^.* ([-a-z0-9]+)\[[a-z0-9-_\.]+\].*`)
50
match := r.FindStringSubmatch(m.String())
51
if match == nil {
52
return nil, fmt.Errorf("Could not find app name in message", m.String())
0 commit comments