Giter Club home page Giter Club logo

Comments (6)

millermedeiros avatar millermedeiros commented on July 20, 2024

uhm, good catch. When the rule is an Array it simply does an indexOf search. What do you feel would be the proper approach? Add a new setting to toggle behavior or make it case insensitive?

from crossroads.js.

ducka avatar ducka commented on July 20, 2024

Ah I see. Well, I've only been using URL Routing libraries for a short while now, but I struggle to think of a situation where I would need case sensitivity in a URL. Perhaps making the match case insensitive without the behavior toggle would be appropriate? Can you think of a situation where you would need case sensitive matching?

from crossroads.js.

millermedeiros avatar millermedeiros commented on July 20, 2024

Yeah, it makes sense to always be case insensitive. Added it to the v0.9.0 bucket since I still didn't had time to release it (just missing the documentation). It's easy to implement and shouldn't affect legacy projects (since I also don't think case sensitivity matters in this case). Thanks for reporting it.

from crossroads.js.

ducka avatar ducka commented on July 20, 2024

Awesome, thanks for that!

from crossroads.js.

millermedeiros avatar millermedeiros commented on July 20, 2024

@ducka I'm still unsure about this, specially since crossroads is case sensitive on the route matching, callbacks arguments and function validation rule. see #53 for more details.

from crossroads.js.

ducka avatar ducka commented on July 20, 2024

Hmm, I've since come to realise this myself @millermedeiros... I'll comment on that other issue.

from crossroads.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.