fix: Add space to the valid index characters list (#2316)
This commit is contained in:
@@ -69,7 +69,7 @@ router.post("collections.create", auth(), async (ctx) => {
|
||||
if (index) {
|
||||
ctx.assertIndexCharacters(
|
||||
index,
|
||||
"Index characters must be between x21 to x7E ASCII"
|
||||
"Index characters must be between x20 to x7E ASCII"
|
||||
);
|
||||
} else {
|
||||
index = fractionalIndex(
|
||||
@@ -664,7 +664,7 @@ router.post("collections.move", auth(), async (ctx) => {
|
||||
ctx.assertPresent(index, "index is required");
|
||||
ctx.assertIndexCharacters(
|
||||
index,
|
||||
"Index characters must be between x21 to x7E ASCII"
|
||||
"Index characters must be between x20 to x7E ASCII"
|
||||
);
|
||||
ctx.assertUuid(id, "id must be a uuid");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user