troch / path-parser

A small utility to parse paths.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for `==` in parameters

MrLoh opened this issue · comments

Nice little library, very usefull and easy to use.

I get base64 encoded ids from my backend. They look like this: TW92aWU6MTI1OA== (btoa("Movie:1258")), the parser can't handle these == in the strings. Could this be easily fixed somehow?

Hey @MrLoh, you mean == in path parameters or query paramters?

path parameters. E.g. I'm matching path /movie/:id and want to extract the id from the URI /movie/TW92aWU6MTI1OA==.

Supported with latest version of path-parser