commit | c99f073a8326e94aa167a931bd0f36241712f6dd | [log] [tgz] |
---|---|---|
author | Shengjing Zhu <zsj950618@gmail.com> | Sun Oct 30 02:45:21 2022 +0800 |
committer | Jonathan Amsterdam <jba@google.com> | Mon Oct 31 16:58:47 2022 +0000 |
tree | a6ba244edac2b220f393f7e0671415c69278b2be | |
parent | 05cedabc055c66dc7b901b941962754663607648 [diff] |
slog: fix RFC3339 regexp when offset is positive Change-Id: I2f037bf3a211a8e969330e47fc0a2d499ec92f80 Reviewed-on: https://go-review.googlesource.com/c/exp/+/446156 Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Roland Shoemaker <roland@golang.org>
diff --git a/slog/logger_test.go b/slog/logger_test.go index 4d171b4..ee6624d 100644 --- a/slog/logger_test.go +++ b/slog/logger_test.go
@@ -17,7 +17,7 @@ "time" ) -const timeRE = `\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}(Z|-\d{2}:\d{2})` +const timeRE = `\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}(Z|[+-]\d{2}:\d{2})` func TestLogTextHandler(t *testing.T) { var buf bytes.Buffer