codebattle
codebattle copied to clipboard
Bug: Hyphen (`-`) is not recognized as a special character during password registration
Summary
When trying to register with a password that includes a hyphen (-), the system shows an error:
"Password should contain at least one special character"
Although the hyphen is a special character, it is not accepted.
Version: 2816702
Reproduction steps
1. Go to https://codebattle.hexlet.io/
2. Click on "Sign up"
3. Enter a password that contains letters, numbers, and a hyphen (e.g., `Password1234-`)
4. Click "Submit"
Expected result
A password containing a hyphen (-) should be considered valid as it includes a special character.
Actual result
The error message appears:
"Should contain at least one special character"
Browsers
Chrome
OS
Windows