troch / route-node

A package to create a tree of named routes
MIT License
20 stars 15 forks source link

Fix root path trimming #12

Closed davazp closed 7 years ago

davazp commented 7 years ago

The trailing slash of the path / (with optional query parameters) should not be trimmed, even when use trailingSlash is false.

This change solves #11

troch commented 7 years ago

@davazp thanks for the PR, your fix is correct.