{"action":"opened","issue":{"url":"https://api.github.com/repos/buildium/password-strength/issues/3","labels_url":"https://api.github.com/repos/buildium/password-strength/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/buildium/password-strength/issues/3/comments","events_url":"https://api.github.com/repos/buildium/password-strength/issues/3/events","html_url":"https://github.com/buildium/password-strength/issues/3","id":120458083,"number":3,"title":"Change the pattern","user":{"login":"digitil","id":566576,"avatar_url":"https://avatars.githubusercontent.com/u/566576?v=3","gravatar_id":"","url":"https://api.github.com/users/digitil","html_url":"https://github.com/digitil","followers_url":"https://api.github.com/users/digitil/followers","following_url":"https://api.github.com/users/digitil/following{/other_user}","gists_url":"https://api.github.com/users/digitil/gists{/gist_id}","starred_url":"https://api.github.com/users/digitil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitil/subscriptions","organizations_url":"https://api.github.com/users/digitil/orgs","repos_url":"https://api.github.com/users/digitil/repos","events_url":"https://api.github.com/users/digitil/events{/privacy}","received_events_url":"https://api.github.com/users/digitil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-04T18:26:26Z","updated_at":"2015-12-04T18:26:26Z","closed_at":null,"body":"How do we feel about implementing a builder pattern for constructing the password strength checker?\r\nThis would give the client the advantage of being able to more easily tailor the checker.\r\nAn example of what this would look like is\r\n\r\n        var checkPassword = bdPasswordStrength\r\n            .withNumCharacters({weight: 4})\r\n            .withUpperCaseLetters(false)\r\n            .withMiddleNumbersAndSymbols({weight: 5})\r\n            .build();\r\n\r\nand provided flavors like\r\n\r\n    var checkPassword = bdPasswordStrength.lettersNumbersSpecialChars();\r\n    // or\r\n    var checkPassword = bdPasswordStrength.letters().numbers().specialChars();"}}