Merge pull request #6042 from matrix-org/t3chguy/fix/17304

Update space order field validity requirements to match msc update
This commit is contained in:
Michael Telatynski 2021-05-14 23:19:52 +01:00 committed by GitHub
commit 1b8402f39c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ export const getOrder = (order: string, creationTs: number, roomId: string): Arr
if (typeof order === "string" && Array.from(order).every((c: string) => {
const charCode = c.charCodeAt(0);
return charCode >= 0x20 && charCode <= 0x7F;
return charCode >= 0x20 && charCode <= 0x7E;
})) {
validatedOrder = order;
}