yahoo/fluxible

[fluxible-router] case-sensitive routing

開放

#435 建立於 2016年4月27日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (233 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (1,816 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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)

貢獻者指南