mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-29 19:54:55 +01:00
Support runtimes that contain a period
This commit is contained in:
parent
b02705db48
commit
5b1c9140b3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user