fix: names with spaces being bugged out

This commit is contained in:
2022-10-30 17:01:01 +01:00
parent 8ea72518d0
commit fdaa30343e

View File

@@ -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!`)