button / DeepLinkKit

A splendid route-matching, block-based way to handle your deep links.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong route parameters when using alternation in a route handler

donirn opened this issue · comments

As stated, I got a wrong route parameter when my route handler has alternation.

Config

Route handler: /?(pathA|pathB|pathC)/path2/:number/?
URL test: someApp://pathA/path2/123456789

Result

routeParameters[@"number"] = pathA

Do I get my configuration wrong or is it just a bug?
Let me know if you need more info to investigate this.