Shopify/batman — pull request #521 by brentd (2012-08-16 19:30:33+00:00)
Title: IE routing bug

I encountered this routing bug when testing out my Batman project in IE8.

Example:

```coffee
class App extends Batman.App
@route 'products/:id', 'products#show'

...

# IE8
App.routes.products(10).path() #=> "/products/:id"

# Chrome
App.routes.products(10).path() #=> "/products/10"
```

The problem was in the way the named params of the route were extracted with a regexp. I'm pretty sure this is the cause: http://blog.stevenlevithan.com/archives/exec-bugs

A good bug to know about for IE compatibility in Batman going forward (it was a new one for me).

Let me know if there are any problems with this PR; happy to make adjustments to get it the way you guys want.