{"action":"opened","issue":{"url":"https://api.github.com/repos/momodae/HtmlSpanTagHandler/issues/1","repository_url":"https://api.github.com/repos/momodae/HtmlSpanTagHandler","labels_url":"https://api.github.com/repos/momodae/HtmlSpanTagHandler/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/momodae/HtmlSpanTagHandler/issues/1/comments","events_url":"https://api.github.com/repos/momodae/HtmlSpanTagHandler/issues/1/events","html_url":"https://github.com/momodae/HtmlSpanTagHandler/issues/1","id":183570828,"number":1,"title":"不错。谢谢了。添加对rgb样式的颜色支持","user":{"login":"yincs","id":14165452,"avatar_url":"https://avatars.githubusercontent.com/u/14165452?v=3","gravatar_id":"","url":"https://api.github.com/users/yincs","html_url":"https://github.com/yincs","followers_url":"https://api.github.com/users/yincs/followers","following_url":"https://api.github.com/users/yincs/following{/other_user}","gists_url":"https://api.github.com/users/yincs/gists{/gist_id}","starred_url":"https://api.github.com/users/yincs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yincs/subscriptions","organizations_url":"https://api.github.com/users/yincs/orgs","repos_url":"https://api.github.com/users/yincs/repos","events_url":"https://api.github.com/users/yincs/events{/privacy}","received_events_url":"https://api.github.com/users/yincs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-18T01:51:49Z","updated_at":"2016-10-18T01:51:49Z","closed_at":null,"body":"if (TAG_COLOR.equals(key)) {\r\n                                    try {\r\n                                        int color;\r\n                                        if (value.toLowerCase().contains(\"rgb\")) {\r\n                                            value = value.substring(5, value.length() - 1);\r\n                                            final String[] split = value.replace(\" \", \"\").split(\",\");\r\n                                            color = Color.argb(255, Integer.valueOf(split[0]), Integer.valueOf(split[1]), Integer.parseInt(split[2]));\r\n                                        } else {\r\n                                            color = Color.parseColor(value);\r\n                                        }\r\n                                        output.setSpan(new ForegroundColorSpan(color), where, where + len, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\r\n                                    } catch (Exception e) {\r\n                                        e.printStackTrace();\r\n                                    }"}}
{"actor":{"display_login":"yincs"}}