diff --git a/services/app/apps/codebattle/assets/js/__tests__/UserSettings.test.jsx b/services/app/apps/codebattle/assets/js/__tests__/UserSettings.test.jsx index 7026c4f97..02960e1f2 100644 --- a/services/app/apps/codebattle/assets/js/__tests__/UserSettings.test.jsx +++ b/services/app/apps/codebattle/assets/js/__tests__/UserSettings.test.jsx @@ -129,7 +129,7 @@ describe('UserSettings test cases', () => { expect( await findByText( - /Should contain Latin letters, numbers and underscores. Only begin with latin letter/i, + /Must consist of Latin letters, numbers and underscores. Only begin with latin letter/i, ), ).toBeInTheDocument(); expect(submitButton).toBeDisabled(); diff --git a/services/app/apps/codebattle/assets/js/widgets/formik/index.js b/services/app/apps/codebattle/assets/js/widgets/formik/index.js index 99aeec289..f81f4d4f7 100644 --- a/services/app/apps/codebattle/assets/js/widgets/formik/index.js +++ b/services/app/apps/codebattle/assets/js/widgets/formik/index.js @@ -35,7 +35,7 @@ const schemas = { ) .matches( /^[a-zA-Z]+[a-zA-Z0-9_-\s{1}][a-zA-Z0-9_]+$/i, - 'Should contain Latin letters, numbers and underscores. Only begin with latin letter', + 'Must consist of Latin letters, numbers and underscores. Only begin with latin letter', ) .trim(), clan: Yup.string() @@ -69,7 +69,7 @@ const schemas = { .max(16, 'Should be from 3 to 16 characters') .matches( /^[a-zA-Z]+[a-zA-Z0-9_-\s{1}][a-zA-Z0-9_]+$/i, - 'Should contain Latin letters, numbers and underscores. Only begin with latin letter', + 'Must consist of Latin letters, numbers and underscores. Only begin with latin letter', ) .required('Nickname required'), email: emailSchema,