diff --git a/timestamp.go b/timestamp.go index 2c2bcc5..4a382cd 100644 --- a/timestamp.go +++ b/timestamp.go @@ -19,6 +19,7 @@ var ( regexp.MustCompile(`\d{2}-\d{2}-\d{4}`), regexp.MustCompile(`\d{2}/\d{2}/\d{4}`), regexp.MustCompile(`\d{2}\.\d{2}\.\d{4}`), + regexp.MustCompile(`\d{2}/[A-Z][a-z]{2}/\d{4}`), } ) diff --git a/timestamp_test.go b/timestamp_test.go index 541e5d5..6e936eb 100644 --- a/timestamp_test.go +++ b/timestamp_test.go @@ -24,4 +24,5 @@ func Test_containsTimestamp(t *testing.T) { assert.True(t, containsTimestamp("2005-08-09T18:31:42-03:30")) assert.True(t, containsTimestamp("2005-08-09T18:31:42")) assert.True(t, containsTimestamp("2005-08-09T18:31:42.201")) + assert.True(t, containsTimestamp(`10/Oct/2000:13:55:36 -0700`)) }