-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Deprecate usage of white-space character in path #41
Deprecate usage of white-space character in path #41
Conversation
1 similar comment
4bfb984
to
dfa6a62
Compare
I'll review this in the morning now, but we should make sure it's being tested 👍 It brings up another interesting conversation around path matching too. |
@blakeembrey we have decided with @PradnyaBaviskar to omit the tests because I was not aware of any easy way how to write them. Can you advise please? Should we hook into |
@bajtos You're right, it would be a little fragile to test but we should make sure it is working and doesn't go missing one day. Maybe override |
-1, I'd rather not mess with global state that may be already overridden by mocha test runner.
I think this is the correct way to go. Listen for a deprecation event, set a flag when it's called, and then assert in the test that after the tested method was invoked, the flag is set.
What do you propose? Should @PradnyaBaviskar continue working on this patch, or shall we close it in favour of whatever get's implemented as part of #42? |
@bajtos I actually think this isn't something we want right now. Maybe at the framework level (Express) it makes sense, but it's entirely possible that what is being put into the RegExp is already decoded (outside of Express, but in other frameworks, etc). If you disagree, feel free to let me know - but I'm going to close this for now. |
Referring to expressjs/express#2511, added fix to deprecate usage of white-space character in path.
Can one of the maintainers please review this?