millermedeiros / crossroads.js

JavaScript Routes
http://millermedeiros.github.com/crossroads.js/
1.44k stars 156 forks source link

S1/:context: incorrectly matches S10 #138

Open divyeshjain opened 9 years ago

divyeshjain commented 9 years ago

The pattern generated for S1/:context: is /^\/?S1\/?([^\/?]+)?\/?\/?$/i which also matches S10. This route should match S1 and S1/abc but not S10 in my understanding.

stopcoder commented 8 years ago

Could someone have a look at this issue?

Best regards, Jiawei