Browse Source

fix a small regex typo

pull/2619/head
dorj222 4 years ago
parent
commit
1993eebc9f
  1. 2
      web/components/admin/TextField.tsx
  2. 2
      web/components/admin/config/server/StreamKeys.tsx

2
web/components/admin/TextField.tsx

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

2
web/components/admin/config/server/StreamKeys.tsx

@ -7,7 +7,7 @@ import { fetchData, UPDATE_STREAM_KEYS } from '../../../../utils/apis'; @@ -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

Loading…
Cancel
Save