leeluolee / stateman

A tiny foundation that providing nested state-based routing for complex web application.
https://leeluolee.github.io/stateman
MIT License
388 stars 36 forks source link

state.url中有"."时无法获得状态, 不能进入enter方法 #29

Closed Sartner closed 8 years ago

Sartner commented 8 years ago

url: #/redis/:name

当name为redis_192.168.1.1时无法获得状态 修改成redis_192_168_1_1正常

leeluolee commented 8 years ago

默认pattern是[-\$\w]+ .不匹配 , 你可以这样设置 '/:name([.\w+]+)' . 其中双斜杠是为了避免字符串里的转移

参考文档: Routing 参数

leeluolee commented 8 years ago

一直没反馈, 我就关了