vt-middleware / passay

Password policy enforcement for Java.
http://www.passay.org
Other
281 stars 64 forks source link

Avoid PatternSyntaxException formatting a regex. #135

Closed dfish3r closed 2 years ago

dfish3r commented 2 years ago

RepeatCharacterRegexRule uses String#format to create a regular expression. That operation is problematic in non-english locales. Define a specific locale for the operation. Fixes #134.

serac commented 2 years ago

Looks good.