remove double space while registration
This commit is contained in:
@@ -169,7 +169,9 @@ export default function RegisterForm() {
|
||||
async function onChangeHandler(e: ChangeEvent<HTMLInputElement>): Promise<void> {
|
||||
const fieldName = e.target.name;
|
||||
if (fieldName !== 'phone') {
|
||||
e.target.value = e.target.value.replace(/([^a-zA-Zа-яёА-ЯЁ0-9@.!#$%&"'*+/=?^_{|}~\-\s])/g, '');
|
||||
e.target.value = e.target.value
|
||||
.replace(/([^a-zA-Zа-яёА-ЯЁ0-9@.!#$%&"'*+/=?^_{|}~\-\s])/g, '')
|
||||
.replace(/\s+/g, ' ');
|
||||
}
|
||||
|
||||
if (fieldName === 'inn') {
|
||||
|
||||
Reference in New Issue
Block a user