{"action":"created","issue":{"url":"https://api.github.com/repos/cangelis/simple-validator/issues/15","repository_url":"https://api.github.com/repos/cangelis/simple-validator","labels_url":"https://api.github.com/repos/cangelis/simple-validator/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/cangelis/simple-validator/issues/15/comments","events_url":"https://api.github.com/repos/cangelis/simple-validator/issues/15/events","html_url":"https://github.com/cangelis/simple-validator/issues/15","id":239399911,"number":15,"title":"Handle of equals(:array[element])","user":{"login":"sartatpdev999","id":21377696,"avatar_url":"https://avatars1.githubusercontent.com/u/21377696?v=3","gravatar_id":"","url":"https://api.github.com/users/sartatpdev999","html_url":"https://github.com/sartatpdev999","followers_url":"https://api.github.com/users/sartatpdev999/followers","following_url":"https://api.github.com/users/sartatpdev999/following{/other_user}","gists_url":"https://api.github.com/users/sartatpdev999/gists{/gist_id}","starred_url":"https://api.github.com/users/sartatpdev999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sartatpdev999/subscriptions","organizations_url":"https://api.github.com/users/sartatpdev999/orgs","repos_url":"https://api.github.com/users/sartatpdev999/repos","events_url":"https://api.github.com/users/sartatpdev999/events{/privacy}","received_events_url":"https://api.github.com/users/sartatpdev999/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-29T08:18:28Z","updated_at":"2017-06-29T09:20:34Z","closed_at":null,"body":"Hi. It's unavailable to handle POST array variable in equal rule. The following rules doesn't work:\r\n```\r\n'user[password]' => [\r\n  'required',\r\n  'min_length(6)',\r\n],\r\n'user[password_confirm]' => [\r\n   'required',\r\n   'equals(:user[password])',\r\n],\r\n```\r\nLooks like regular expression in ```./simple-validator/src/SimpleValidator/Validator.php``` at line ```195``` should be improve.\r\n\r\nMy temporary dummy solution:\r\n```\r\nif (preg_match(\"#^:([\\[\\]a-zA-Z0-9_]+)$#\", $param, $param_type)) {\r\n```\r\nLet me know if i'm wrong. Thanks"},"comment":{"url":"https://api.github.com/repos/cangelis/simple-validator/issues/comments/311911249","html_url":"https://github.com/cangelis/simple-validator/issues/15#issuecomment-311911249","issue_url":"https://api.github.com/repos/cangelis/simple-validator/issues/15","id":311911249,"user":{"login":"sartatpdev999","id":21377696,"avatar_url":"https://avatars1.githubusercontent.com/u/21377696?v=3","gravatar_id":"","url":"https://api.github.com/users/sartatpdev999","html_url":"https://github.com/sartatpdev999","followers_url":"https://api.github.com/users/sartatpdev999/followers","following_url":"https://api.github.com/users/sartatpdev999/following{/other_user}","gists_url":"https://api.github.com/users/sartatpdev999/gists{/gist_id}","starred_url":"https://api.github.com/users/sartatpdev999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sartatpdev999/subscriptions","organizations_url":"https://api.github.com/users/sartatpdev999/orgs","repos_url":"https://api.github.com/users/sartatpdev999/repos","events_url":"https://api.github.com/users/sartatpdev999/events{/privacy}","received_events_url":"https://api.github.com/users/sartatpdev999/received_events","type":"User","site_admin":false},"created_at":"2017-06-29T09:20:34Z","updated_at":"2017-06-29T09:20:34Z","body":"Yes. Of course\r\n\r\n```\r\narray(2) {\r\n  [\"user[password]\"]=>\r\n  string(6) \"123456\"\r\n  [\"user[password_confirm]\"]=>\r\n  string(6) \"123456\"\r\n}\r\n```"}}
{"actor":{"display_login":"sartatpdev999"}}