added custom insertion id regex check
This commit is contained in:
@@ -590,7 +590,13 @@ func TestCollectionUpsertWithCustomId(t *testing.T) {
|
||||
true,
|
||||
},
|
||||
{
|
||||
"id = 15 chars",
|
||||
"id = 15 chars (invalid chars)",
|
||||
`{"id":"a@3456789012345"}`,
|
||||
newCollection(),
|
||||
true,
|
||||
},
|
||||
{
|
||||
"id = 15 chars (valid chars)",
|
||||
`{"id":"a23456789012345"}`,
|
||||
newCollection(),
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user