Daniel15 / RouteJs

JavaScript URL routing for ASP.NET MVC and WebForms
84 stars 19 forks source link

Fixed issue with valid, zero-length routes #54

Open travislaynewilson opened 7 years ago

travislaynewilson commented 7 years ago

The url variable was falsey rejecting valid routes with zero-length (aka. empty strings). Checking for null instead of relying on falsey checking fixes the issue.

Daniel15 commented 7 years ago

Thanks! Could you please add a unit test for this case?