Please see https://github.com/lukeed/trouter/issues/25 The issue stems from `\/?` being matched at the end of all patterns in regexparam: https://github.com/aral/regexparam/blob/master/src/index.js#L28