Skip to content

Commit 7c4cddf

Browse files
committed
chore: tweak regexp
1 parent c4e0e7e commit 7c4cddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/dbtest/query_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ func TestQuery(t *testing.T) {
684684
},
685685
}
686686

687-
timeRE := regexp.MustCompile(`'\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+(\+\d{2}:\d{2})?'`)
687+
timeRE := regexp.MustCompile(`'2\d{3}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(\.\d+)?(\+\d{2}:\d{2})?'`)
688688

689689
testEachDB(t, func(t *testing.T, dbName string, db *bun.DB) {
690690
for i, fn := range queries {

0 commit comments

Comments
 (0)