{"action":"created","issue":{"url":"https://api.github.com/repos/alexmingoia/koa-router/issues/197","labels_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/197/comments","events_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/197/events","html_url":"https://github.com/alexmingoia/koa-router/issues/197","id":112815507,"number":197,"title":"Path in array breaks sometimes","user":{"login":"mfchung","id":8310302,"avatar_url":"https://avatars.githubusercontent.com/u/8310302?v=3","gravatar_id":"","url":"https://api.github.com/users/mfchung","html_url":"https://github.com/mfchung","followers_url":"https://api.github.com/users/mfchung/followers","following_url":"https://api.github.com/users/mfchung/following{/other_user}","gists_url":"https://api.github.com/users/mfchung/gists{/gist_id}","starred_url":"https://api.github.com/users/mfchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfchung/subscriptions","organizations_url":"https://api.github.com/users/mfchung/orgs","repos_url":"https://api.github.com/users/mfchung/repos","events_url":"https://api.github.com/users/mfchung/events{/privacy}","received_events_url":"https://api.github.com/users/mfchung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-22T14:30:11Z","updated_at":"2015-10-27T09:34:24Z","closed_at":null,"body":"consider the following code \r\n\r\n```javascript\r\n/*jshint node:true*/\r\n/*jshint esnext:true*/\r\n'use strict';\r\n\r\nvar publicRoutes = require('koa-router')();\r\nvar send = require('koa-send');\r\n\r\npublicRoutes.get(['/app/pub/app.module.js'], function *(next) {\r\n\tyield send(this, this.request.url);\r\n});\r\n\r\npublicRoutes.get(['/app/pvt/com/*/*.js', '/app/pvt/com/*/*.html'], function *(next) {\r\n\tyield send(this, this.request.url);\r\n});\r\n\r\npublicRoutes.get(['/app/pvt/com/*/*.js'], function *(next) {\r\n\tyield send(this, this.request.url);\r\n});\r\n```\r\nthe first route throws an exception, the second and third works fine.\r\n\r\nthe exception is \r\n\r\n**/home/doc/Desktop/os1/node_modules/koa-router/lib/router.js:513\r\n      var routeNestingLevel = route.path.split('/').length;\r\n                                         ^\r\nTypeError: route.path.split is not a function**\r\n\r\nI am using version nodejs 4.2.1 and koa-router 5.2.3\r\n"},"comment":{"url":"https://api.github.com/repos/alexmingoia/koa-router/issues/comments/151431748","html_url":"https://github.com/alexmingoia/koa-router/issues/197#issuecomment-151431748","issue_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/197","id":151431748,"user":{"login":"praveenax","id":594699,"avatar_url":"https://avatars.githubusercontent.com/u/594699?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenax","html_url":"https://github.com/praveenax","followers_url":"https://api.github.com/users/praveenax/followers","following_url":"https://api.github.com/users/praveenax/following{/other_user}","gists_url":"https://api.github.com/users/praveenax/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenax/subscriptions","organizations_url":"https://api.github.com/users/praveenax/orgs","repos_url":"https://api.github.com/users/praveenax/repos","events_url":"https://api.github.com/users/praveenax/events{/privacy}","received_events_url":"https://api.github.com/users/praveenax/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T09:34:24Z","updated_at":"2015-10-27T09:34:24Z","body":"It got resolved when I used Koa-router:5.1.2."}}