codeguy/Slim — pull request #596 by marionebl (2013-08-08 22:38:59+00:00)
Title: Match path items on whole words.

Hi there,

I recently ran into some issues with routing, where the callbacks for a route where executed that had a substring of the requested path in it.

An example:
```
$app->get("/me/", function() {
echo("Nice to meet you.");
});

$app->get("/message/", function() {
echo("No message for you this time.");
});
```

GET /messages/ would execute the callback for the "me" route in this scenario.

The proposed CR tries to fix this by checking if items in the route definition are candidates for matching on whole words and modifying the given parts of the matching regex.

Cheers,
marionebl