mape/connect-assetmanager — Issue #22: group.route within assetManager function not RegExp
Author: danielschwartz
Created: 2011-10-21 15:41:10+00:00
State: open

In 0.0.24 there is a bug where unless you instantiate your regular express string as a RegExp object, the
```
if(group.route.test(req.url))
```

within the settings.forEach loop will error out stating that group.route does not have a method test. You can currently get around this by instantiating your regex as a RegExp object in the config by doing new RegExp().

Either it should be instantiated by the plugin as a RegExp object or the example should be changed to show that you must instantiate it yourself.