Support runtimes that contain a period

This commit is contained in:
David Dworken 2022-09-17 12:37:02 -07:00
parent b02705db48
commit 5b1c9140b3

View File

@ -315,7 +315,7 @@ echo thisisrecorded`)
tableDividerMatcher := `\s+`
pathMatcher := `~/[a-zA-Z_0-9/-]+`
datetimeMatcher := `[a-zA-Z]{3}\s\d{2}\s\d{4}\s[0-9:]+\s[A-Z]{3}`
runtimeMatcher := `[0-9ms]+`
runtimeMatcher := `[0-9.ms]+`
exitCodeMatcher := `0`
cmdMatcher := `echo thisisrecorded`
match, err := regexp.MatchString(hostnameMatcher+tableDividerMatcher+pathMatcher+tableDividerMatcher+datetimeMatcher+tableDividerMatcher+runtimeMatcher+tableDividerMatcher+exitCodeMatcher+tableDividerMatcher+cmdMatcher+tableDividerMatcher+`\n`, out)