{"action":"created","comment":{"url":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/comments/73403040","id":73403040,"diff_hunk":"@@ -0,0 +1,52 @@\n+package utils;\n+\n+/**\n+ * Created by ina on 02/08/2016.\n+ */\n+public class PhoneMask {\n+\n+    /**\n+     * Formatted telephone mask: (xxx) xxx-xxx = 9 (020) xxxx-xxxx = 11  (030) xxx-xxxx = 10\n+     */\n+    public static final String FORMATTED_PHONENUMBER_MASK = \"(\\\\(020\\\\) \\\\d{4}-\\\\d{3})|(\\\\(030\\\\) \\\\d{3}-\\\\d{4})|(\\\\(\\\\d{3}\\\\) \\\\d{3}-\\\\d{3})\";\n+\n+    /**\n+     * Formatted telephone mask: xxxxxxxxx = 9 020xxxxxxxx = 11  030xxxxxxx = 10\n+     */\n+    public static final String PLAIN_PHONENUMBER_MASK = \"(((020)\\\\d{8})|((030)\\\\d{7})|\\\\d{9})\";\n+\n+    /**\n+     * Formats number according to mask (xxx) xxx-xxx = 9 (020) xxxx-xxxx = 11  (030) xxx-xxxx = 10\n+     * @param phoneValue\n+     * @return\n+     */\n+    public static String formatPhoneNumber(String phoneValue) {\n+        //Empty -> nothing to format\n+        if (phoneValue == null || \"\".equals(phoneValue)) {","path":"app/src/laos/java/utils/PhoneMask.java","position":null,"original_position":25,"commit_id":"f07c35eedff4d5aec446609276e4feb525b85b48","original_commit_id":"921d537231e55e8be7f4c7f7fd327d5022a747e4","user":{"login":"idelcano","id":5302538,"avatar_url":"https://avatars.githubusercontent.com/u/5302538?v=3","gravatar_id":"","url":"https://api.github.com/users/idelcano","html_url":"https://github.com/idelcano","followers_url":"https://api.github.com/users/idelcano/followers","following_url":"https://api.github.com/users/idelcano/following{/other_user}","gists_url":"https://api.github.com/users/idelcano/gists{/gist_id}","starred_url":"https://api.github.com/users/idelcano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idelcano/subscriptions","organizations_url":"https://api.github.com/users/idelcano/orgs","repos_url":"https://api.github.com/users/idelcano/repos","events_url":"https://api.github.com/users/idelcano/events{/privacy}","received_events_url":"https://api.github.com/users/idelcano/received_events","type":"User","site_admin":false},"body":"I do not understand why is there, I removed it.","created_at":"2016-08-03T19:22:14Z","updated_at":"2016-08-03T19:22:14Z","html_url":"https://github.com/EyeSeeTea/pictureapp/pull/352#discussion_r73403040","pull_request_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/352","_links":{"self":{"href":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/comments/73403040"},"html":{"href":"https://github.com/EyeSeeTea/pictureapp/pull/352#discussion_r73403040"},"pull_request":{"href":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/352"}}},"pull_request":{"url":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/352","id":79818290,"html_url":"https://github.com/EyeSeeTea/pictureapp/pull/352","diff_url":"https://github.com/EyeSeeTea/pictureapp/pull/352.diff","patch_url":"https://github.com/EyeSeeTea/pictureapp/pull/352.patch","issue_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues/352","number":352,"state":"open","locked":false,"title":"Feature phone mask","user":{"login":"idelcano","id":5302538,"avatar_url":"https://avatars.githubusercontent.com/u/5302538?v=3","gravatar_id":"","url":"https://api.github.com/users/idelcano","html_url":"https://github.com/idelcano","followers_url":"https://api.github.com/users/idelcano/followers","following_url":"https://api.github.com/users/idelcano/following{/other_user}","gists_url":"https://api.github.com/users/idelcano/gists{/gist_id}","starred_url":"https://api.github.com/users/idelcano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idelcano/subscriptions","organizations_url":"https://api.github.com/users/idelcano/orgs","repos_url":"https://api.github.com/users/idelcano/repos","events_url":"https://api.github.com/users/idelcano/events{/privacy}","received_events_url":"https://api.github.com/users/idelcano/received_events","type":"User","site_admin":false},"body":"closes #336","created_at":"2016-08-02T22:12:26Z","updated_at":"2016-08-03T19:22:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecaef0f0a1182c3100e95c531e8f1ff9a88cc23f","assignee":{"login":"adrianq","id":6850223,"avatar_url":"https://avatars.githubusercontent.com/u/6850223?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianq","html_url":"https://github.com/adrianq","followers_url":"https://api.github.com/users/adrianq/followers","following_url":"https://api.github.com/users/adrianq/following{/other_user}","gists_url":"https://api.github.com/users/adrianq/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianq/subscriptions","organizations_url":"https://api.github.com/users/adrianq/orgs","repos_url":"https://api.github.com/users/adrianq/repos","events_url":"https://api.github.com/users/adrianq/events{/privacy}","received_events_url":"https://api.github.com/users/adrianq/received_events","type":"User","site_admin":false},"assignees":[{"login":"adrianq","id":6850223,"avatar_url":"https://avatars.githubusercontent.com/u/6850223?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianq","html_url":"https://github.com/adrianq","followers_url":"https://api.github.com/users/adrianq/followers","following_url":"https://api.github.com/users/adrianq/following{/other_user}","gists_url":"https://api.github.com/users/adrianq/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianq/subscriptions","organizations_url":"https://api.github.com/users/adrianq/orgs","repos_url":"https://api.github.com/users/adrianq/repos","events_url":"https://api.github.com/users/adrianq/events{/privacy}","received_events_url":"https://api.github.com/users/adrianq/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/352/commits","review_comments_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/352/comments","review_comment_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues/352/comments","statuses_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/statuses/f07c35eedff4d5aec446609276e4feb525b85b48","head":{"label":"EyeSeeTea:feature-phone_mask","ref":"feature-phone_mask","sha":"f07c35eedff4d5aec446609276e4feb525b85b48","user":{"login":"EyeSeeTea","id":11258275,"avatar_url":"https://avatars.githubusercontent.com/u/11258275?v=3","gravatar_id":"","url":"https://api.github.com/users/EyeSeeTea","html_url":"https://github.com/EyeSeeTea","followers_url":"https://api.github.com/users/EyeSeeTea/followers","following_url":"https://api.github.com/users/EyeSeeTea/following{/other_user}","gists_url":"https://api.github.com/users/EyeSeeTea/gists{/gist_id}","starred_url":"https://api.github.com/users/EyeSeeTea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EyeSeeTea/subscriptions","organizations_url":"https://api.github.com/users/EyeSeeTea/orgs","repos_url":"https://api.github.com/users/EyeSeeTea/repos","events_url":"https://api.github.com/users/EyeSeeTea/events{/privacy}","received_events_url":"https://api.github.com/users/EyeSeeTea/received_events","type":"Organization","site_admin":false},"repo":{"id":39269291,"name":"pictureapp","full_name":"EyeSeeTea/pictureapp","owner":{"login":"EyeSeeTea","id":11258275,"avatar_url":"https://avatars.githubusercontent.com/u/11258275?v=3","gravatar_id":"","url":"https://api.github.com/users/EyeSeeTea","html_url":"https://github.com/EyeSeeTea","followers_url":"https://api.github.com/users/EyeSeeTea/followers","following_url":"https://api.github.com/users/EyeSeeTea/following{/other_user}","gists_url":"https://api.github.com/users/EyeSeeTea/gists{/gist_id}","starred_url":"https://api.github.com/users/EyeSeeTea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EyeSeeTea/subscriptions","organizations_url":"https://api.github.com/users/EyeSeeTea/orgs","repos_url":"https://api.github.com/users/EyeSeeTea/repos","events_url":"https://api.github.com/users/EyeSeeTea/events{/privacy}","received_events_url":"https://api.github.com/users/EyeSeeTea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EyeSeeTea/pictureapp","description":"Mobile application designed to report cases of malaria (to a DHIS2 server)","fork":false,"url":"https://api.github.com/repos/EyeSeeTea/pictureapp","forks_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/forks","keys_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/teams","hooks_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/hooks","issue_events_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues/events{/number}","events_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/events","assignees_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/assignees{/user}","branches_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/branches{/branch}","tags_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/tags","blobs_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/statuses/{sha}","languages_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/languages","stargazers_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/stargazers","contributors_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/contributors","subscribers_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/subscribers","subscription_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/subscription","commits_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/contents/{+path}","compare_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/merges","archive_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/downloads","issues_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues{/number}","pulls_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls{/number}","milestones_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/milestones{/number}","notifications_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/labels{/name}","releases_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/releases{/id}","deployments_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/deployments","created_at":"2015-07-17T18:28:43Z","updated_at":"2016-02-22T16:02:09Z","pushed_at":"2016-08-03T19:22:02Z","git_url":"git://github.com/EyeSeeTea/pictureapp.git","ssh_url":"git@github.com:EyeSeeTea/pictureapp.git","clone_url":"https://github.com/EyeSeeTea/pictureapp.git","svn_url":"https://github.com/EyeSeeTea/pictureapp","homepage":"","size":9805,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":25,"forks":0,"open_issues":25,"watchers":2,"default_branch":"master"}},"base":{"label":"EyeSeeTea:development","ref":"development","sha":"3cc94c58657f2affb9e89b158fc828fac74e3a43","user":{"login":"EyeSeeTea","id":11258275,"avatar_url":"https://avatars.githubusercontent.com/u/11258275?v=3","gravatar_id":"","url":"https://api.github.com/users/EyeSeeTea","html_url":"https://github.com/EyeSeeTea","followers_url":"https://api.github.com/users/EyeSeeTea/followers","following_url":"https://api.github.com/users/EyeSeeTea/following{/other_user}","gists_url":"https://api.github.com/users/EyeSeeTea/gists{/gist_id}","starred_url":"https://api.github.com/users/EyeSeeTea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EyeSeeTea/subscriptions","organizations_url":"https://api.github.com/users/EyeSeeTea/orgs","repos_url":"https://api.github.com/users/EyeSeeTea/repos","events_url":"https://api.github.com/users/EyeSeeTea/events{/privacy}","received_events_url":"https://api.github.com/users/EyeSeeTea/received_events","type":"Organization","site_admin":false},"repo":{"id":39269291,"name":"pictureapp","full_name":"EyeSeeTea/pictureapp","owner":{"login":"EyeSeeTea","id":11258275,"avatar_url":"https://avatars.githubusercontent.com/u/11258275?v=3","gravatar_id":"","url":"https://api.github.com/users/EyeSeeTea","html_url":"https://github.com/EyeSeeTea","followers_url":"https://api.github.com/users/EyeSeeTea/followers","following_url":"https://api.github.com/users/EyeSeeTea/following{/other_user}","gists_url":"https://api.github.com/users/EyeSeeTea/gists{/gist_id}","starred_url":"https://api.github.com/users/EyeSeeTea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EyeSeeTea/subscriptions","organizations_url":"https://api.github.com/users/EyeSeeTea/orgs","repos_url":"https://api.github.com/users/EyeSeeTea/repos","events_url":"https://api.github.com/users/EyeSeeTea/events{/privacy}","received_events_url":"https://api.github.com/users/EyeSeeTea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EyeSeeTea/pictureapp","description":"Mobile application designed to report cases of malaria (to a DHIS2 server)","fork":false,"url":"https://api.github.com/repos/EyeSeeTea/pictureapp","forks_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/forks","keys_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/teams","hooks_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/hooks","issue_events_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues/events{/number}","events_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/events","assignees_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/assignees{/user}","branches_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/branches{/branch}","tags_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/tags","blobs_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/statuses/{sha}","languages_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/languages","stargazers_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/stargazers","contributors_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/contributors","subscribers_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/subscribers","subscription_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/subscription","commits_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/contents/{+path}","compare_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/merges","archive_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/downloads","issues_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues{/number}","pulls_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls{/number}","milestones_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/milestones{/number}","notifications_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/labels{/name}","releases_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/releases{/id}","deployments_url":"https://api.github.com/repos/EyeSeeTea/pictureapp/deployments","created_at":"2015-07-17T18:28:43Z","updated_at":"2016-02-22T16:02:09Z","pushed_at":"2016-08-03T19:22:02Z","git_url":"git://github.com/EyeSeeTea/pictureapp.git","ssh_url":"git@github.com:EyeSeeTea/pictureapp.git","clone_url":"https://github.com/EyeSeeTea/pictureapp.git","svn_url":"https://github.com/EyeSeeTea/pictureapp","homepage":"","size":9805,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":25,"forks":0,"open_issues":25,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/352"},"html":{"href":"https://github.com/EyeSeeTea/pictureapp/pull/352"},"issue":{"href":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues/352"},"comments":{"href":"https://api.github.com/repos/EyeSeeTea/pictureapp/issues/352/comments"},"review_comments":{"href":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/352/comments"},"review_comment":{"href":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EyeSeeTea/pictureapp/pulls/352/commits"},"statuses":{"href":"https://api.github.com/repos/EyeSeeTea/pictureapp/statuses/f07c35eedff4d5aec446609276e4feb525b85b48"}}}}
{"actor":{"display_login":"idelcano"}}