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

This commit is contained in:
sean-brydon
2023-08-10 11:50:43 +02:00
committed by GitHub
parent d6d4e246f9
commit 5f59ef2acf
+3
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,