From fdaa30343ec7aa166de23bbe78fd93e87ba62c70 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 30 Oct 2022 17:01:01 +0100 Subject: [PATCH] fix: names with spaces being bugged out --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 71d00b3..457af43 100644 --- a/index.ts +++ b/index.ts @@ -17,7 +17,7 @@ const limiter = rateLimit({ legacyHeaders: false, }) app.use(limiter) -const englishRegex = /^[A-Za-z0-9]*$/ +const englishRegex = /^[A-Za-z0-9 ]*$/ await mongoose.connect(`${process.env.MONGODB}`).then(() => { consolelogTime(`Connected to MongoDB!`)