fix: Vercel autoconverts + to a ' ' character. (#9920)

This commit is contained in:
Alex van Andel
2023-07-04 12:37:04 -04:00
committed by GitHub
parent 63e93fb12c
commit 6799e5f214
+1 -1
View File
@@ -178,7 +178,7 @@ export const getUsernameList = (users: string | string[] | undefined): string[]
// So, even though this code handles even if individual user is dynamic link, that isn't a possibility right now.
users = arrayCast(users);
const allUsers = users.map((user) => user.split("+")).flat();
const allUsers = users.map((user) => user.replace(/( |%20|%2b)/g, "+").split("+")).flat();
return Array.prototype.concat(...allUsers.map((userSlug) => slugify(userSlug)));
};