From 34726051ba27c713afe06db3b3e0e076b1ea612c Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 20 Feb 2023 20:22:38 -0700 Subject: [PATCH] Allow channel names more than 1 character long --- src/schemas/general.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schemas/general.ts b/src/schemas/general.ts index 0d7a599..5a05a06 100644 --- a/src/schemas/general.ts +++ b/src/schemas/general.ts @@ -1,3 +1,3 @@ import Joi from "joi"; -export const channelSchema = Joi.string().pattern(/^[a-z0-9_\-]$/i); \ No newline at end of file +export const channelSchema = Joi.string().pattern(/^[a-z0-9_\-]+$/i); \ No newline at end of file