Allow hyphen for proc name (#60)

This commit is contained in:
Satoshi Ebisawa
2016-04-13 13:07:35 -07:00
committed by David Dollar
parent ea0c5b42d0
commit 62551d4c2e
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"regexp"
)
var procfileEntryRegexp = regexp.MustCompile("^([A-Za-z0-9_]+):\\s*(.+)$")
var procfileEntryRegexp = regexp.MustCompile("^([A-Za-z0-9_-]+):\\s*(.+)$")
type ProcfileEntry struct {
Name string