{"action":"created","issue":{"url":"https://api.github.com/repos/Adonis-Js/indicative/issues/21","labels_url":"https://api.github.com/repos/Adonis-Js/indicative/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/Adonis-Js/indicative/issues/21/comments","events_url":"https://api.github.com/repos/Adonis-Js/indicative/issues/21/events","html_url":"https://github.com/Adonis-Js/indicative/issues/21","id":110847320,"number":21,"title":"Unable to use custom regex validation","user":{"login":"mattts","id":3767040,"avatar_url":"https://avatars.githubusercontent.com/u/3767040?v=3","gravatar_id":"","url":"https://api.github.com/users/mattts","html_url":"https://github.com/mattts","followers_url":"https://api.github.com/users/mattts/followers","following_url":"https://api.github.com/users/mattts/following{/other_user}","gists_url":"https://api.github.com/users/mattts/gists{/gist_id}","starred_url":"https://api.github.com/users/mattts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattts/subscriptions","organizations_url":"https://api.github.com/users/mattts/orgs","repos_url":"https://api.github.com/users/mattts/repos","events_url":"https://api.github.com/users/mattts/events{/privacy}","received_events_url":"https://api.github.com/users/mattts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Adonis-Js/indicative/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"thetutlage","id":1706381,"avatar_url":"https://avatars.githubusercontent.com/u/1706381?v=3","gravatar_id":"","url":"https://api.github.com/users/thetutlage","html_url":"https://github.com/thetutlage","followers_url":"https://api.github.com/users/thetutlage/followers","following_url":"https://api.github.com/users/thetutlage/following{/other_user}","gists_url":"https://api.github.com/users/thetutlage/gists{/gist_id}","starred_url":"https://api.github.com/users/thetutlage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetutlage/subscriptions","organizations_url":"https://api.github.com/users/thetutlage/orgs","repos_url":"https://api.github.com/users/thetutlage/repos","events_url":"https://api.github.com/users/thetutlage/events{/privacy}","received_events_url":"https://api.github.com/users/thetutlage/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-10-11T10:18:00Z","updated_at":"2015-10-12T03:48:31Z","closed_at":null,"body":"Tried using the below pattern to validate\r\n\r\n[a-zA-Z0-9\\\\\\-~!@#$%^*()_+{}:|\"\"?`;',./[\\]<>&]+\r\n\r\nUnhandled rejection TypeError: Cannot read property 'call' of undefined"},"comment":{"url":"https://api.github.com/repos/Adonis-Js/indicative/issues/comments/147285668","html_url":"https://github.com/Adonis-Js/indicative/issues/21#issuecomment-147285668","issue_url":"https://api.github.com/repos/Adonis-Js/indicative/issues/21","id":147285668,"user":{"login":"thetutlage","id":1706381,"avatar_url":"https://avatars.githubusercontent.com/u/1706381?v=3","gravatar_id":"","url":"https://api.github.com/users/thetutlage","html_url":"https://github.com/thetutlage","followers_url":"https://api.github.com/users/thetutlage/followers","following_url":"https://api.github.com/users/thetutlage/following{/other_user}","gists_url":"https://api.github.com/users/thetutlage/gists{/gist_id}","starred_url":"https://api.github.com/users/thetutlage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetutlage/subscriptions","organizations_url":"https://api.github.com/users/thetutlage/orgs","repos_url":"https://api.github.com/users/thetutlage/repos","events_url":"https://api.github.com/users/thetutlage/events{/privacy}","received_events_url":"https://api.github.com/users/thetutlage/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T03:48:31Z","updated_at":"2015-10-12T03:48:31Z","body":"For regex especially where you have `|` symbol ,  you have to define rules as an array. So in your case it will be\r\n\r\n```javascript\r\npassword: ['required,'regex:[a-zA-Z0-9\\\\\\-~!@#$%^*()_+{}:|\"\"?`;',./[\\]<>&]+']\r\n```\r\n\r\nAlso update indicative to `v1.2.8`"}}