{"action":"created","issue":{"url":"https://api.github.com/repos/zeebo/bencode/issues/16","labels_url":"https://api.github.com/repos/zeebo/bencode/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/zeebo/bencode/issues/16/comments","events_url":"https://api.github.com/repos/zeebo/bencode/issues/16/events","html_url":"https://github.com/zeebo/bencode/issues/16","id":108670962,"number":16,"title":"tag bug?","user":{"login":"woniu369","id":9634079,"avatar_url":"https://avatars.githubusercontent.com/u/9634079?v=3","gravatar_id":"","url":"https://api.github.com/users/woniu369","html_url":"https://github.com/woniu369","followers_url":"https://api.github.com/users/woniu369/followers","following_url":"https://api.github.com/users/woniu369/following{/other_user}","gists_url":"https://api.github.com/users/woniu369/gists{/gist_id}","starred_url":"https://api.github.com/users/woniu369/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woniu369/subscriptions","organizations_url":"https://api.github.com/users/woniu369/orgs","repos_url":"https://api.github.com/users/woniu369/repos","events_url":"https://api.github.com/users/woniu369/events{/privacy}","received_events_url":"https://api.github.com/users/woniu369/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-28T14:36:26Z","updated_at":"2015-09-28T16:36:40Z","closed_at":null,"body":"```go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\r\n\t\"github.com/zeebo/bencode\"\r\n)\r\n\r\ntype Bug struct {\r\n\tName     string `bencode:\"name\"`\r\n\tNameUtf8 string `bencode:\"name.utf-8\"`\r\n}\r\n\r\nfunc main() {\r\n\tb := map[string]string{\r\n\t\t\"name\":       \"name\",\r\n\t\t\"name.utf-8\": \"name.utf-8\",\r\n\t}\r\n\tstr, _ := bencode.EncodeString(&b)\r\n\tfmt.Println(str)\r\n\r\n\tbug := new(Bug)\r\n\tbencode.DecodeString(str, bug)\r\n\tfmt.Printf(\"%+v\\n\", bug)\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/zeebo/bencode/issues/comments/143798789","html_url":"https://github.com/zeebo/bencode/issues/16#issuecomment-143798789","issue_url":"https://api.github.com/repos/zeebo/bencode/issues/16","id":143798789,"user":{"login":"woniu369","id":9634079,"avatar_url":"https://avatars.githubusercontent.com/u/9634079?v=3","gravatar_id":"","url":"https://api.github.com/users/woniu369","html_url":"https://github.com/woniu369","followers_url":"https://api.github.com/users/woniu369/followers","following_url":"https://api.github.com/users/woniu369/following{/other_user}","gists_url":"https://api.github.com/users/woniu369/gists{/gist_id}","starred_url":"https://api.github.com/users/woniu369/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woniu369/subscriptions","organizations_url":"https://api.github.com/users/woniu369/orgs","repos_url":"https://api.github.com/users/woniu369/repos","events_url":"https://api.github.com/users/woniu369/events{/privacy}","received_events_url":"https://api.github.com/users/woniu369/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T16:36:40Z","updated_at":"2015-09-28T16:36:40Z","body":"https://github.com/zeebo/bencode/blob/master/tag.go#L46-L48\r\n```go\r\nif c != ' ' && c != '$' && c != '-' && c != '_' && !unicode.IsLetter(c) && !unicode.IsDigit(c) {\r\n\treturn false\r\n}\r\n```\r\nchange\r\n```go\r\nif c != ' ' && c != '$' && c != '-' && c != '_' && c != '.' && !unicode.IsLetter(c) && !unicode.IsDigit(c) {\r\n\treturn false\r\n}\r\n```"}}