Commit e4eca9f
fix: move hyphen to end of password validation regex character class
The hyphen character was positioned between * and + in the regex
character class [#?!@$%^&*-+], causing it to be interpreted as a
range operator (ASCII 42-43) instead of a literal hyphen (ASCII 45).
This caused passwords containing hyphens to fail validation while
passwords with asterisks passed.
Moving the hyphen to the end of the character class [#?!@$%^&*+-]
ensures it is treated as a literal character.
Regression introduced in 757e964.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 2217ef7 commit e4eca9f
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments