Leading slashes
OliverJAsh opened this issue · comments
Oliver Joseph Ash commented
This returns Some
. Should it return None
?
import * as O from "fp-ts/Option";
import * as P from "fp-ts-routing";
import { pipe } from "fp-ts/lib/function";
const parser = pipe(P.lit("foo").parser, P.map(O.some));
const result = P.parse(parser, P.Route.parse("/////foo"), O.none);
console.log({ result });
Stefano Magrassi commented
#70 seems to have resolved this issue.
The fix will be available with version 0.6