c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
814 stars 83 forks source link

一個 ->data match 後會變成 NULL 的 case #26

Closed CindyLinz closed 10 years ago

CindyLinz commented 10 years ago

pattern: /post4/{id1:\d{3}}/{id2}

match: /post4/123/

好像是機率性... 不過 NULL 的機率大

CindyLinz commented 10 years ago

pattern: /post4/{id1:\d{3}}/{id2:\d+}

match: /post4/123/

也是

不過 /post4/123/1 就一定會是好的

c9s commented 10 years ago

test case updated cae305b92dcb0ceeaa06963e392cb747bdfd2a12

c9s commented 10 years ago

fixed in e9797295b5a8de0fa2989aa934f4379f9ad9be75

c9s commented 10 years ago

我 close 囉?

CindyLinz commented 10 years ago

okok XD 2014/5/21 下午12:32 於 "Pedro" notifications@github.com 寫道:

我 close 囉?

— Reply to this email directly or view it on GitHubhttps://github.com/c9s/r3/issues/26#issuecomment-43711352 .