Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group.route within assetManager function not RegExp #22

Open
danielschwartz opened this issue Oct 21, 2011 · 0 comments
Open

group.route within assetManager function not RegExp #22

danielschwartz opened this issue Oct 21, 2011 · 0 comments

Comments

@danielschwartz
Copy link

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(your regex string).

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant