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

Regex fix for newer version of node #58

Merged

Conversation

rniemeyer
Copy link
Contributor

Found an issue in newer versions of node when you have a child resource that uses a regex for the url. It seems related to changes with how escaped characters appear in the toString of a regex (https://bugs.chromium.org/p/v8/issues/detail?id=3229). The result was that in newer versions of Node, the final regex for a route was being prefixed multiple times.

This fix is backwards compatible and will work in old (v0.12.x) versions and new. Changes were made to the tests to demonstrate where this was breaking.

@rniemeyer rniemeyer force-pushed the defect-autohost-regex-issue branch from 2cf7abf to 5f4e672 Compare April 5, 2016 15:41
@brianedgerton brianedgerton merged commit c973115 into LeanKit-Labs:master Apr 5, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants