{"action":"closed","issue":{"url":"https://api.github.com/repos/poppinss/indicative/issues/58","repository_url":"https://api.github.com/repos/poppinss/indicative","labels_url":"https://api.github.com/repos/poppinss/indicative/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/poppinss/indicative/issues/58/comments","events_url":"https://api.github.com/repos/poppinss/indicative/issues/58/events","html_url":"https://github.com/poppinss/indicative/issues/58","id":155211387,"number":58,"title":"Regex for decimal number check not working","user":{"login":"bron10","id":5483963,"avatar_url":"https://avatars.githubusercontent.com/u/5483963?v=3","gravatar_id":"","url":"https://api.github.com/users/bron10","html_url":"https://github.com/bron10","followers_url":"https://api.github.com/users/bron10/followers","following_url":"https://api.github.com/users/bron10/following{/other_user}","gists_url":"https://api.github.com/users/bron10/gists{/gist_id}","starred_url":"https://api.github.com/users/bron10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bron10/subscriptions","organizations_url":"https://api.github.com/users/bron10/orgs","repos_url":"https://api.github.com/users/bron10/repos","events_url":"https://api.github.com/users/bron10/events{/privacy}","received_events_url":"https://api.github.com/users/bron10/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/poppinss/indicative/labels/duplicate","name":"duplicate","color":"cccccc"},{"url":"https://api.github.com/repos/poppinss/indicative/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","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":2,"created_at":"2016-05-17T09:13:14Z","updated_at":"2016-05-17T09:24:13Z","closed_at":"2016-05-17T09:24:13Z","body":"Using indicative@2.0.6, got error `Invalid flags supplied to RegExp constructor '2})?$'`, while working on following:\r\n\r\n```javascript\r\nvar rule = {\r\n decimal : ['regex:^[0-9]+(.[0-9]{1,2})?$'] \r\n};\r\n```\r\n\r\n```javascript\r\nvar data = {\r\ndecimal : 12.12\r\n};\r\n```\r\n\r\nThankx in advance.."}}