yahoo/fluxible

[fluxible-router] case-sensitive routing

Open

#435 aperta il 27 apr 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (233 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (1816 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

the routing in fluxible-router is case insensitive currently. i'd like to use case-sensitive routing..

it seems that fluxible-router uses routr, which in turn uses path-to-regexp, which has an option for this, but it's not possible to pass down this option to it.

basically this line https://github.com/yahoo/routr/blob/master/lib/router.js#L38 needs to get an additional {sensitive:true} param at the end.

what would be the best way to achieve this? (to be able to choose case-sensitive routing)

Guida contributor