{"action":"created","issue":{"url":"https://api.github.com/repos/krasimir/now-lambda-runner/issues/1","repository_url":"https://api.github.com/repos/krasimir/now-lambda-runner","labels_url":"https://api.github.com/repos/krasimir/now-lambda-runner/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/krasimir/now-lambda-runner/issues/1/comments","events_url":"https://api.github.com/repos/krasimir/now-lambda-runner/issues/1/events","html_url":"https://github.com/krasimir/now-lambda-runner/issues/1","id":387446452,"node_id":"MDU6SXNzdWUzODc0NDY0NTI=","number":1,"title":"Routes regexps support","user":{"login":"Igloczek","id":5119280,"node_id":"MDQ6VXNlcjUxMTkyODA=","avatar_url":"https://avatars3.githubusercontent.com/u/5119280?v=4","gravatar_id":"","url":"https://api.github.com/users/Igloczek","html_url":"https://github.com/Igloczek","followers_url":"https://api.github.com/users/Igloczek/followers","following_url":"https://api.github.com/users/Igloczek/following{/other_user}","gists_url":"https://api.github.com/users/Igloczek/gists{/gist_id}","starred_url":"https://api.github.com/users/Igloczek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igloczek/subscriptions","organizations_url":"https://api.github.com/users/Igloczek/orgs","repos_url":"https://api.github.com/users/Igloczek/repos","events_url":"https://api.github.com/users/Igloczek/events{/privacy}","received_events_url":"https://api.github.com/users/Igloczek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-04T19:34:58Z","updated_at":"2018-12-10T21:55:37Z","closed_at":null,"author_association":"NONE","body":"Seems like you are currently not supporting the same format of describing route source as Now itself.\r\n\r\nIn my case, this throws errors trying to run locally, but work perfectly fine on Now:\r\n```json\r\n\"routes\": [\r\n    { \"src\": \"/api/entity/(?<name>[^/]*)\", \"dest\": \"/api/entity.js?name=$name\" },\r\n    { \"src\": \"/api/collection/(?<name>[^/]*)\", \"dest\": \"/api/collection.js?name=$name\" }\r\n],\r\n```\r\n\r\nDocs: https://zeit.co/docs/v2/deployments/configuration/#routes\r\n\r\nStacktrace:\r\n```\r\n/Users/igloczek/.nvm/versions/node/v8.11.3/lib/node_modules/now-lambda-runner/index.js:43\r\n    const r = new RegExp(route.src);\r\n              ^\r\n\r\nSyntaxError: Invalid regular expression: //api/entity/(?<name>[^/]*)/: Invalid group\r\n    at new RegExp (<anonymous>)\r\n    at nowConf.routes.forEach.route (/Users/igloczek/.nvm/versions/node/v8.11.3/lib/node_modules/now-lambda-runner/index.js:43:15)\r\n    at Array.forEach (<anonymous>)\r\n    at Object.<anonymous> (/Users/igloczek/.nvm/versions/node/v8.11.3/lib/node_modules/now-lambda-runner/index.js:39:18)\r\n    at Module._compile (module.js:652:30)\r\n    at Object.Module._extensions..js (module.js:663:10)\r\n    at Module.load (module.js:565:32)\r\n    at tryModuleLoad (module.js:505:12)\r\n    at Function.Module._load (module.js:497:3)\r\n    at Function.Module.runMain (module.js:693:10)\r\n```"},"comment":{"url":"https://api.github.com/repos/krasimir/now-lambda-runner/issues/comments/445989084","html_url":"https://github.com/krasimir/now-lambda-runner/issues/1#issuecomment-445989084","issue_url":"https://api.github.com/repos/krasimir/now-lambda-runner/issues/1","id":445989084,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTk4OTA4NA==","user":{"login":"krasimir","id":528677,"node_id":"MDQ6VXNlcjUyODY3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/528677?v=4","gravatar_id":"","url":"https://api.github.com/users/krasimir","html_url":"https://github.com/krasimir","followers_url":"https://api.github.com/users/krasimir/followers","following_url":"https://api.github.com/users/krasimir/following{/other_user}","gists_url":"https://api.github.com/users/krasimir/gists{/gist_id}","starred_url":"https://api.github.com/users/krasimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krasimir/subscriptions","organizations_url":"https://api.github.com/users/krasimir/orgs","repos_url":"https://api.github.com/users/krasimir/repos","events_url":"https://api.github.com/users/krasimir/events{/privacy}","received_events_url":"https://api.github.com/users/krasimir/received_events","type":"User","site_admin":false},"created_at":"2018-12-10T21:55:37Z","updated_at":"2018-12-10T21:55:37Z","author_association":"OWNER","body":"@Igloczek can you please try the latest `1.0.0` version. It should work now. I tested with the following:\r\n```json\r\n\"routes\": [\r\n    { \"src\": \"/e/resources/(?<resource>[^/]*)\", \"dest\": \"/www/static/app/resources/$resource\"}\r\n  ]\r\n```"}}
{"actor":{"display_login":"krasimir"}}