mattevans / pwned-passwords

🔐Go client library for checking values against compromised HIBP Pwned Passwords
MIT License
85 stars 7 forks source link

Safer string split #7

Closed nesvand closed 3 years ago

nesvand commented 4 years ago

While they're unlikely to change how they're line-splitting (and in most cases "\n" will work regardless of line split), for completeness the string split has been updated to safely account for "\r\n" and "\n"