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

pull/9904/head^2
Alex van Andel 2023-07-04 12:37:04 -04:00 committed by GitHub
parent 63e93fb12c
commit 6799e5f214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)));
};