{"action":"created","comment":{"url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/comments/210462408","pull_request_review_id":146681551,"id":210462408,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDQ2MjQwOA==","diff_hunk":"@@ -1,5 +1,41 @@\n package com.higgsup.kpi.util;\n \n+import java.util.regex.Matcher;\n+import java.util.regex.Pattern;\n+\n public class UtilsValidate {\n+    public static Boolean containRegex(String str) {\n+        Pattern pattern = Pattern.compile(\"^((?!.*\\\\..*\\\\.)(?!.*_.*_)[A-Za-z0-9_.])*$\");\n+        Matcher matcher = pattern.matcher(str);\n+        if (matcher.matches()) {\n+            return false;\n+        }\n+        return true;\n+    }\n+\n+    public static Boolean isValidPhoneNumber(String str) {\n+        Pattern pattern = Pattern.compile(\"^[0-9]{0,11}$\");\n+        Matcher matcher = pattern.matcher(str);\n+        if (!matcher.matches()) {\n+            return false;\n+        }\n+        return true;\n+    }\n+\n+    public static Boolean isValidEmail(String str) {\n+        Pattern pattern = Pattern.compile(\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\");\n+        Matcher matcher = pattern.matcher(str);\n+        if (!matcher.matches()) {\n+            return false;\n+        }\n+        return true;\n+    }\n \n+    public static Boolean pointValidate(String point) {\n+        String regex = \"((-|\\\\+)?[0-9]+(\\\\.[0-9]+)?)+\";","path":"src/main/java/com/higgsup/kpi/util/UtilsValidate.java","position":35,"original_position":35,"commit_id":"818836c46676f750d4f419ddc03af76f56d9c443","original_commit_id":"818836c46676f750d4f419ddc03af76f56d9c443","user":{"login":"lethanh9398","id":35591245,"node_id":"MDQ6VXNlcjM1NTkxMjQ1","avatar_url":"https://avatars0.githubusercontent.com/u/35591245?v=4","gravatar_id":"","url":"https://api.github.com/users/lethanh9398","html_url":"https://github.com/lethanh9398","followers_url":"https://api.github.com/users/lethanh9398/followers","following_url":"https://api.github.com/users/lethanh9398/following{/other_user}","gists_url":"https://api.github.com/users/lethanh9398/gists{/gist_id}","starred_url":"https://api.github.com/users/lethanh9398/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethanh9398/subscriptions","organizations_url":"https://api.github.com/users/lethanh9398/orgs","repos_url":"https://api.github.com/users/lethanh9398/repos","events_url":"https://api.github.com/users/lethanh9398/events{/privacy}","received_events_url":"https://api.github.com/users/lethanh9398/received_events","type":"User","site_admin":false},"body":"cái này để check chuỗi nhập vào là số đúng không ?","created_at":"2018-08-16T02:27:04Z","updated_at":"2018-08-16T02:27:04Z","html_url":"https://github.com/atulaa1/kpi-be-higgsup/pull/15#discussion_r210462408","pull_request_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/15","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/comments/210462408"},"html":{"href":"https://github.com/atulaa1/kpi-be-higgsup/pull/15#discussion_r210462408"},"pull_request":{"href":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/15","id":208727626,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NzI3NjI2","html_url":"https://github.com/atulaa1/kpi-be-higgsup/pull/15","diff_url":"https://github.com/atulaa1/kpi-be-higgsup/pull/15.diff","patch_url":"https://github.com/atulaa1/kpi-be-higgsup/pull/15.patch","issue_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues/15","number":15,"state":"open","locked":false,"title":"F update config seminar","user":{"login":"NgThuy","id":36691828,"node_id":"MDQ6VXNlcjM2NjkxODI4","avatar_url":"https://avatars0.githubusercontent.com/u/36691828?v=4","gravatar_id":"","url":"https://api.github.com/users/NgThuy","html_url":"https://github.com/NgThuy","followers_url":"https://api.github.com/users/NgThuy/followers","following_url":"https://api.github.com/users/NgThuy/following{/other_user}","gists_url":"https://api.github.com/users/NgThuy/gists{/gist_id}","starred_url":"https://api.github.com/users/NgThuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgThuy/subscriptions","organizations_url":"https://api.github.com/users/NgThuy/orgs","repos_url":"https://api.github.com/users/NgThuy/repos","events_url":"https://api.github.com/users/NgThuy/events{/privacy}","received_events_url":"https://api.github.com/users/NgThuy/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-16T02:10:19Z","updated_at":"2018-08-16T02:27:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/15/commits","review_comments_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/15/comments","review_comment_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues/15/comments","statuses_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/statuses/818836c46676f750d4f419ddc03af76f56d9c443","head":{"label":"atulaa1:f-updateConfigSeminar","ref":"f-updateConfigSeminar","sha":"818836c46676f750d4f419ddc03af76f56d9c443","user":{"login":"atulaa1","id":4538281,"node_id":"MDQ6VXNlcjQ1MzgyODE=","avatar_url":"https://avatars1.githubusercontent.com/u/4538281?v=4","gravatar_id":"","url":"https://api.github.com/users/atulaa1","html_url":"https://github.com/atulaa1","followers_url":"https://api.github.com/users/atulaa1/followers","following_url":"https://api.github.com/users/atulaa1/following{/other_user}","gists_url":"https://api.github.com/users/atulaa1/gists{/gist_id}","starred_url":"https://api.github.com/users/atulaa1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atulaa1/subscriptions","organizations_url":"https://api.github.com/users/atulaa1/orgs","repos_url":"https://api.github.com/users/atulaa1/repos","events_url":"https://api.github.com/users/atulaa1/events{/privacy}","received_events_url":"https://api.github.com/users/atulaa1/received_events","type":"User","site_admin":false},"repo":{"id":143969968,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5Njk5Njg=","name":"kpi-be-higgsup","full_name":"atulaa1/kpi-be-higgsup","owner":{"login":"atulaa1","id":4538281,"node_id":"MDQ6VXNlcjQ1MzgyODE=","avatar_url":"https://avatars1.githubusercontent.com/u/4538281?v=4","gravatar_id":"","url":"https://api.github.com/users/atulaa1","html_url":"https://github.com/atulaa1","followers_url":"https://api.github.com/users/atulaa1/followers","following_url":"https://api.github.com/users/atulaa1/following{/other_user}","gists_url":"https://api.github.com/users/atulaa1/gists{/gist_id}","starred_url":"https://api.github.com/users/atulaa1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atulaa1/subscriptions","organizations_url":"https://api.github.com/users/atulaa1/orgs","repos_url":"https://api.github.com/users/atulaa1/repos","events_url":"https://api.github.com/users/atulaa1/events{/privacy}","received_events_url":"https://api.github.com/users/atulaa1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atulaa1/kpi-be-higgsup","description":null,"fork":false,"url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup","forks_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/forks","keys_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/teams","hooks_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/hooks","issue_events_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues/events{/number}","events_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/events","assignees_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/assignees{/user}","branches_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/branches{/branch}","tags_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/tags","blobs_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/refs{/sha}","trees_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/statuses/{sha}","languages_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/languages","stargazers_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/stargazers","contributors_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/contributors","subscribers_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/subscribers","subscription_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/subscription","commits_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/commits{/sha}","git_commits_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/commits{/sha}","comments_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/comments{/number}","issue_comment_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues/comments{/number}","contents_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/contents/{+path}","compare_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/merges","archive_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/downloads","issues_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues{/number}","pulls_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls{/number}","milestones_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/milestones{/number}","notifications_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/labels{/name}","releases_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/releases{/id}","deployments_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/deployments","created_at":"2018-08-08T06:25:09Z","updated_at":"2018-08-08T06:49:49Z","pushed_at":"2018-08-16T02:24:55Z","git_url":"git://github.com/atulaa1/kpi-be-higgsup.git","ssh_url":"git@github.com:atulaa1/kpi-be-higgsup.git","clone_url":"https://github.com/atulaa1/kpi-be-higgsup.git","svn_url":"https://github.com/atulaa1/kpi-be-higgsup","homepage":null,"size":138,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"atulaa1:dev","ref":"dev","sha":"edbe431f516e983225c56c57c2a413846364c7f4","user":{"login":"atulaa1","id":4538281,"node_id":"MDQ6VXNlcjQ1MzgyODE=","avatar_url":"https://avatars1.githubusercontent.com/u/4538281?v=4","gravatar_id":"","url":"https://api.github.com/users/atulaa1","html_url":"https://github.com/atulaa1","followers_url":"https://api.github.com/users/atulaa1/followers","following_url":"https://api.github.com/users/atulaa1/following{/other_user}","gists_url":"https://api.github.com/users/atulaa1/gists{/gist_id}","starred_url":"https://api.github.com/users/atulaa1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atulaa1/subscriptions","organizations_url":"https://api.github.com/users/atulaa1/orgs","repos_url":"https://api.github.com/users/atulaa1/repos","events_url":"https://api.github.com/users/atulaa1/events{/privacy}","received_events_url":"https://api.github.com/users/atulaa1/received_events","type":"User","site_admin":false},"repo":{"id":143969968,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5Njk5Njg=","name":"kpi-be-higgsup","full_name":"atulaa1/kpi-be-higgsup","owner":{"login":"atulaa1","id":4538281,"node_id":"MDQ6VXNlcjQ1MzgyODE=","avatar_url":"https://avatars1.githubusercontent.com/u/4538281?v=4","gravatar_id":"","url":"https://api.github.com/users/atulaa1","html_url":"https://github.com/atulaa1","followers_url":"https://api.github.com/users/atulaa1/followers","following_url":"https://api.github.com/users/atulaa1/following{/other_user}","gists_url":"https://api.github.com/users/atulaa1/gists{/gist_id}","starred_url":"https://api.github.com/users/atulaa1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atulaa1/subscriptions","organizations_url":"https://api.github.com/users/atulaa1/orgs","repos_url":"https://api.github.com/users/atulaa1/repos","events_url":"https://api.github.com/users/atulaa1/events{/privacy}","received_events_url":"https://api.github.com/users/atulaa1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atulaa1/kpi-be-higgsup","description":null,"fork":false,"url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup","forks_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/forks","keys_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/teams","hooks_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/hooks","issue_events_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues/events{/number}","events_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/events","assignees_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/assignees{/user}","branches_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/branches{/branch}","tags_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/tags","blobs_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/refs{/sha}","trees_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/statuses/{sha}","languages_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/languages","stargazers_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/stargazers","contributors_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/contributors","subscribers_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/subscribers","subscription_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/subscription","commits_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/commits{/sha}","git_commits_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/git/commits{/sha}","comments_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/comments{/number}","issue_comment_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues/comments{/number}","contents_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/contents/{+path}","compare_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/merges","archive_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/downloads","issues_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues{/number}","pulls_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls{/number}","milestones_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/milestones{/number}","notifications_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/labels{/name}","releases_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/releases{/id}","deployments_url":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/deployments","created_at":"2018-08-08T06:25:09Z","updated_at":"2018-08-08T06:49:49Z","pushed_at":"2018-08-16T02:24:55Z","git_url":"git://github.com/atulaa1/kpi-be-higgsup.git","ssh_url":"git@github.com:atulaa1/kpi-be-higgsup.git","clone_url":"https://github.com/atulaa1/kpi-be-higgsup.git","svn_url":"https://github.com/atulaa1/kpi-be-higgsup","homepage":null,"size":138,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/15"},"html":{"href":"https://github.com/atulaa1/kpi-be-higgsup/pull/15"},"issue":{"href":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues/15"},"comments":{"href":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/atulaa1/kpi-be-higgsup/statuses/818836c46676f750d4f419ddc03af76f56d9c443"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"lethanh9398"}}