kiliman / remix-flat-routes

Remix package to define routes using the flat-routes convention
MIT License
695 stars 24 forks source link

Does not work as intended on Windows #10

Closed haakonmt closed 2 years ago

haakonmt commented 2 years ago

remix routes returns a different (and erronous) result when run on Windows vs. a unix-based environment.

It looks like a simple path separator issue, where the library assumes /, but Windows uses \. Can most likely be mitigated by using path.sep in the right places instead.

kiliman commented 2 years ago

Thanks for the bug report. I'm in the process of rewriting the route parser. I will make sure to update it to account for differences in path separators.