symfony/symfony — pull request #4876 by egeloen (2012-07-12 13:38:51+00:00)
Title: Routing] Can't generate a route with dash (-) in the pattern and the parameter

Hey!

I'm currently trying to generate a route with this pattern: ``/foo-{slug}``. If my slug contains one or more dashes, the route can't be generated (I got an 500 error).

```
InvalidParameterException: Parameter "foo" for route "test" must match "[^\-]+" ("bar-baz" given).
```

I have added a failing tests.

Tell me if you need more information.