From 1993eebc9fe5fc305826fa60a434919b7d690aea Mon Sep 17 00:00:00 2001 From: dorj222 Date: Tue, 24 Jan 2023 15:10:11 +0100 Subject: [PATCH] fix a small regex typo --- web/components/admin/TextField.tsx | 2 +- web/components/admin/config/server/StreamKeys.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/admin/TextField.tsx b/web/components/admin/TextField.tsx index 8aee784ee..cd84aed69 100644 --- a/web/components/admin/TextField.tsx +++ b/web/components/admin/TextField.tsx @@ -55,7 +55,7 @@ export const TextField: FC = ({ value, }) => { const [hasChanged, setHasChanged] = useState(false); - const regex = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$/; + const regex = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[!@#$%^&*]).{8,192}$/; const [form] = Form.useForm(); const handleChange = (e: any) => { // if an extra onChange handler was sent in as a prop, let's run that too. diff --git a/web/components/admin/config/server/StreamKeys.tsx b/web/components/admin/config/server/StreamKeys.tsx index b1077f4ff..3d16a2f85 100644 --- a/web/components/admin/config/server/StreamKeys.tsx +++ b/web/components/admin/config/server/StreamKeys.tsx @@ -7,7 +7,7 @@ import { fetchData, UPDATE_STREAM_KEYS } from '../../../../utils/apis'; const { Paragraph } = Typography; -const regex = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$/; +const regex = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[!@#$%^&*]).{8,192}$/; // Lazy loaded components