fix a small regex typo

This commit is contained in:
dorj222 2023-01-24 15:10:11 +01:00
parent a5dfc2e03b
commit 1993eebc9f
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ export const TextField: FC<TextFieldProps> = ({
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.

View File

@ -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