apple / password-manager-resources

A place for creators and users of password managers to collaborate on resources to make password management better.
MIT License
4.11k stars 439 forks source link

Fixed failing autoformat-json-files script #777

Closed revolter closed 3 weeks ago

revolter commented 3 weeks ago

The autoformat-json-files.rb was always failing with the error:

Issue parsing & reformatting 'quirks/shared-credentials-historical.json' - comparison of Hash with Hash failed
Issue parsing & reformatting 'quirks/shared-credentials.json' - comparison of Hash with Hash failed

This is because those JSON files contain arrays of hashes, and hashes are not comparable: https://stackoverflow.com/a/55169812/865175.

Overall Checklist

for password-rules.json

for change-password-URLs.json

for shared-credentials.json

for shared-credentials-historical.json