{"action":"created","issue":{"url":"https://api.github.com/repos/probablyup/buttermilk/issues/7","repository_url":"https://api.github.com/repos/probablyup/buttermilk","labels_url":"https://api.github.com/repos/probablyup/buttermilk/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/probablyup/buttermilk/issues/7/comments","events_url":"https://api.github.com/repos/probablyup/buttermilk/issues/7/events","html_url":"https://github.com/probablyup/buttermilk/issues/7","id":348625505,"node_id":"MDU6SXNzdWUzNDg2MjU1MDU=","number":7,"title":"Trouble in understanding regex syntax","user":{"login":"gijo-varghese","id":23092846,"node_id":"MDQ6VXNlcjIzMDkyODQ2","avatar_url":"https://avatars1.githubusercontent.com/u/23092846?v=4","gravatar_id":"","url":"https://api.github.com/users/gijo-varghese","html_url":"https://github.com/gijo-varghese","followers_url":"https://api.github.com/users/gijo-varghese/followers","following_url":"https://api.github.com/users/gijo-varghese/following{/other_user}","gists_url":"https://api.github.com/users/gijo-varghese/gists{/gist_id}","starred_url":"https://api.github.com/users/gijo-varghese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gijo-varghese/subscriptions","organizations_url":"https://api.github.com/users/gijo-varghese/orgs","repos_url":"https://api.github.com/users/gijo-varghese/repos","events_url":"https://api.github.com/users/gijo-varghese/events{/privacy}","received_events_url":"https://api.github.com/users/gijo-varghese/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-08T08:29:13Z","updated_at":"2018-08-08T15:05:34Z","closed_at":null,"author_association":"NONE","body":"I'm trying to validate a route that will accept any routes like `http://localhost:3000/123456` where I can access `123456` as `props.params.some_id`\r\n\r\nThis is what I've tried:\r\n```\r\n      <Router\r\n        routes={[\r\n          {\r\n            path: /^[0-9]$/,\r\n            render: () => SomeComponent\r\n          }\r\n        ]}\r\n      />\r\n```\r\nHowever the route is not matching."},"comment":{"url":"https://api.github.com/repos/probablyup/buttermilk/issues/comments/411439079","html_url":"https://github.com/probablyup/buttermilk/issues/7#issuecomment-411439079","issue_url":"https://api.github.com/repos/probablyup/buttermilk/issues/7","id":411439079,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTQzOTA3OQ==","user":{"login":"gijo-varghese","id":23092846,"node_id":"MDQ6VXNlcjIzMDkyODQ2","avatar_url":"https://avatars1.githubusercontent.com/u/23092846?v=4","gravatar_id":"","url":"https://api.github.com/users/gijo-varghese","html_url":"https://github.com/gijo-varghese","followers_url":"https://api.github.com/users/gijo-varghese/followers","following_url":"https://api.github.com/users/gijo-varghese/following{/other_user}","gists_url":"https://api.github.com/users/gijo-varghese/gists{/gist_id}","starred_url":"https://api.github.com/users/gijo-varghese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gijo-varghese/subscriptions","organizations_url":"https://api.github.com/users/gijo-varghese/orgs","repos_url":"https://api.github.com/users/gijo-varghese/repos","events_url":"https://api.github.com/users/gijo-varghese/events{/privacy}","received_events_url":"https://api.github.com/users/gijo-varghese/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T15:05:34Z","updated_at":"2018-08-08T15:05:34Z","author_association":"NONE","body":"That will accept any value given to id, right? It should be a number. That's why I need regex "}}
{"actor":{"display_login":"gijo-varghese"}}