Transform + usernames to - on token initiation (#10692)

pull/10585/head^2
sean-brydon 2023-08-10 10:50:43 +01:00 committed by GitHub
parent d6d4e246f9
commit 5f59ef2acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -272,6 +272,9 @@ export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {
username = available ? username : suggestion || username;
}
// Transform all + to - in username
username = username.replace(/\+/g, "-");
return {
props: {
...props,