{"action":"opened","issue":{"url":"https://api.github.com/repos/dwolfhub/zxcvbn-python/issues/1","repository_url":"https://api.github.com/repos/dwolfhub/zxcvbn-python","labels_url":"https://api.github.com/repos/dwolfhub/zxcvbn-python/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/dwolfhub/zxcvbn-python/issues/1/comments","events_url":"https://api.github.com/repos/dwolfhub/zxcvbn-python/issues/1/events","html_url":"https://github.com/dwolfhub/zxcvbn-python/issues/1","id":198003156,"number":1,"title":"Matching recent year throws TypeError","user":{"login":"alasjo","id":1453172,"avatar_url":"https://avatars.githubusercontent.com/u/1453172?v=3","gravatar_id":"","url":"https://api.github.com/users/alasjo","html_url":"https://github.com/alasjo","followers_url":"https://api.github.com/users/alasjo/followers","following_url":"https://api.github.com/users/alasjo/following{/other_user}","gists_url":"https://api.github.com/users/alasjo/gists{/gist_id}","starred_url":"https://api.github.com/users/alasjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alasjo/subscriptions","organizations_url":"https://api.github.com/users/alasjo/orgs","repos_url":"https://api.github.com/users/alasjo/repos","events_url":"https://api.github.com/users/alasjo/events{/privacy}","received_events_url":"https://api.github.com/users/alasjo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-29T12:53:44Z","updated_at":"2016-12-29T12:53:44Z","closed_at":null,"body":"Passing a string representation of a recent year with, for example `zxcvbn(\"2000\")` throws the following error ('_sre.SRE_Match' object is not subscriptable):\r\n\r\n    Traceback (most recent call last):\r\n      File \"C:/Users/Me/PycharmProjects/Test/pass.py\", line 5, in <module>\r\n        print(zxcvbn(\"2000\"))\r\n      File \"C:\\Python34\\lib\\site-packages\\zxcvbn\\__init__.py\", line 13, in zxcvbn\r\n        result = scoring.most_guessable_match_sequence(password, matches)\r\n      File \"C:\\Python34\\lib\\site-packages\\zxcvbn\\scoring.py\", line 199, in most_guessable_match_sequence\r\n        update(m, 1)\r\n      File \"C:\\Python34\\lib\\site-packages\\zxcvbn\\scoring.py\", line 111, in update\r\n        pi = estimate_guesses(m, password)\r\n      File \"C:\\Python34\\lib\\site-packages\\zxcvbn\\scoring.py\", line 241, in estimate_guesses\r\n        guesses = estimation_functions[match['pattern']](match)\r\n      File \"C:\\Python34\\lib\\site-packages\\zxcvbn\\scoring.py\", line 310, in regex_guesses\r\n        year_space = abs(int(match['regex_match'][0]) - REFERENCE_YEAR)\r\n    TypeError: '_sre.SRE_Match' object is not subscriptable"}}
{"actor":{"display_login":"alasjo"}}