-
Notifications
You must be signed in to change notification settings - Fork 3k
feat(UrlMatcher): Add support for case insensitive url matching #957
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
feat(UrlMatcher): Add support for case insensitive url matching #957
Conversation
You did it!! |
…nsistive feat(UrlMatcher): Add support for case insensitive url matching
thanks 👍 @mauroservienti |
@mauroservienti Tim commented on #704 (comment) 5 days ago saying the next release would be something like 4 weeks out. |
great, thanks again. |
Sorry I didn't get a chance to comment on this, but I really wish it hadn't been merged. :-/ This is really bad API design, and it'll be that much more problematic for people using it when it gets cleaned up. |
What is the problem with the API, there is one single method, and nothing else? |
@nateabele sorry, I'll not merge things in the future without your comment. It seemed like the appropriate API to me though. My bad man. How do you think we should have approached it? |
@mauroservienti Most of the problems are around the new constructor signature for |
Really good point, thanks for the explanation. I'm not so good at JavaScript. Cheers. From: Nate Abelemailto:[email protected] @mauroservientihttps://github.com/mauroservienti Most of the problems are around the new constructor signature for UrlMatcher. (A) When a method accepts multiple parameters, boolean parameters are bad because you can't infer their meaning from context. (B) This sets the precedent that every new configuration option will be yet-another-parameter. — |
So maybe we should have done an |
Add support for case insensitive url matching, by default url match is case sensitive, for backward compatibility. Case sensitive match can be turned on/off globally via $urlMatcherFactoryProvider caseInsensitiveMatch( true/false ) method.