Skip to content

Commit

Permalink
rollback of last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Demedes committed Mar 13, 2013
1 parent 1d05e9b commit 96a4857
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/route66.coffee
Expand Up @@ -44,7 +44,7 @@ Route66.addRoute = (method, route, functions) -> # generic method for adding rou

Route66.routes[method].push
route: route
regex: new RegExp('^' + route.replace(/\//g, '\\/').replace(/\:([A-Za-z_]+)(\?)?\/?/g, '$2([A-Za-z0-9@.=_-]+)$2') + '\\/?$') # making RegExp from string
regex: new RegExp('^' + route.replace(/\//g, '\\/').replace(/\:([A-Za-z_]+)(\?)?\/?/g, '$2([A-Za-z0-9@._-]+)$2') + '\\/?$') # making RegExp from string
params: params
functions: if functions instanceof Array then functions else toArray(functions).slice 1

Expand Down
2 changes: 1 addition & 1 deletion lib/route66.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "route66",
"version": "0.2.5",
"version": "0.2.7",
"author": "Vadim Demedes <sbioko@gmail.com>",
"description": "Routing functionality/middleware for Connect 2.0",
"main": "./index.js",
Expand Down

0 comments on commit 96a4857

Please sign in to comment.