We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e4d78 commit d1498f4Copy full SHA for d1498f4
bson/bson_test.go
@@ -19,6 +19,7 @@ import (
19
"go.mongodb.org/mongo-driver/bson/bsoncodec"
20
"go.mongodb.org/mongo-driver/bson/bsonoptions"
21
"go.mongodb.org/mongo-driver/bson/bsontype"
22
+ "go.mongodb.org/mongo-driver/bson/primitive"
23
"go.mongodb.org/mongo-driver/internal/assert"
24
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
25
)
@@ -233,7 +234,7 @@ func TestExtJSONEscapeKey(t *testing.T) {
233
234
},
235
{
236
Key: "regex",
- Value: Regex{Pattern: "ab\\\\\\\"ab", Options: "\""},
237
+ Value: primitive.Regex{Pattern: "ab\\\\\\\"ab", Options: "\""},
238
239
}
240
b, err := MarshalExtJSON(&doc, false, false)
0 commit comments