{"action":"closed","issue":{"url":"https://api.github.com/repos/anviar/PKI/issues/6","repository_url":"https://api.github.com/repos/anviar/PKI","labels_url":"https://api.github.com/repos/anviar/PKI/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/anviar/PKI/issues/6/comments","events_url":"https://api.github.com/repos/anviar/PKI/issues/6/events","html_url":"https://github.com/anviar/PKI/issues/6","id":319808608,"number":6,"title":"Add domain validation. ","user":{"login":"Bro05","id":3815603,"avatar_url":"https://avatars3.githubusercontent.com/u/3815603?v=4","gravatar_id":"","url":"https://api.github.com/users/Bro05","html_url":"https://github.com/Bro05","followers_url":"https://api.github.com/users/Bro05/followers","following_url":"https://api.github.com/users/Bro05/following{/other_user}","gists_url":"https://api.github.com/users/Bro05/gists{/gist_id}","starred_url":"https://api.github.com/users/Bro05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bro05/subscriptions","organizations_url":"https://api.github.com/users/Bro05/orgs","repos_url":"https://api.github.com/users/Bro05/repos","events_url":"https://api.github.com/users/Bro05/events{/privacy}","received_events_url":"https://api.github.com/users/Bro05/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ant0shik","id":23059703,"avatar_url":"https://avatars0.githubusercontent.com/u/23059703?v=4","gravatar_id":"","url":"https://api.github.com/users/ant0shik","html_url":"https://github.com/ant0shik","followers_url":"https://api.github.com/users/ant0shik/followers","following_url":"https://api.github.com/users/ant0shik/following{/other_user}","gists_url":"https://api.github.com/users/ant0shik/gists{/gist_id}","starred_url":"https://api.github.com/users/ant0shik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant0shik/subscriptions","organizations_url":"https://api.github.com/users/ant0shik/orgs","repos_url":"https://api.github.com/users/ant0shik/repos","events_url":"https://api.github.com/users/ant0shik/events{/privacy}","received_events_url":"https://api.github.com/users/ant0shik/received_events","type":"User","site_admin":false},"assignees":[{"login":"ant0shik","id":23059703,"avatar_url":"https://avatars0.githubusercontent.com/u/23059703?v=4","gravatar_id":"","url":"https://api.github.com/users/ant0shik","html_url":"https://github.com/ant0shik","followers_url":"https://api.github.com/users/ant0shik/followers","following_url":"https://api.github.com/users/ant0shik/following{/other_user}","gists_url":"https://api.github.com/users/ant0shik/gists{/gist_id}","starred_url":"https://api.github.com/users/ant0shik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant0shik/subscriptions","organizations_url":"https://api.github.com/users/ant0shik/orgs","repos_url":"https://api.github.com/users/ant0shik/repos","events_url":"https://api.github.com/users/ant0shik/events{/privacy}","received_events_url":"https://api.github.com/users/ant0shik/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-05-03T07:09:12Z","updated_at":"2018-05-23T13:16:37Z","closed_at":"2018-05-23T13:16:37Z","author_association":"COLLABORATOR","body":"Validation example by anviar:\r\n`def valid_domain(input_domain):\r\n   if not re.match('''^((?=[a-z0-9-]{1,63}\\.)\r\n                      (\r\n                       [a-z0-9]+\r\n                       |[a-z0-9][a-z0-9-]*[a-z0-9])*\\.\r\n                      )+([a-z]|xn--[a-z0-9-]+){2,63}$''',\r\n                   input_domain.replace('*.', ''), re.VERBOSE):\r\n           raise ArgumentTypeError('Неправильный ввод домена %s')\r\n   return input_domain`"}}
{"actor":{"display_login":"ant0shik"}}