fix($route): correctly extract path params if path contains question mark or hash
The `routeToRegExp()` function, introduced by 840b5f0, could not extract path params if the path contained question mark or hash. Although these characters would normally be encoded in the path, they are decoded by `$location.path()`, before being passed to the RegExp returned by `routeToRegExp()`. `routeToRegExp()` has to be able to deal with both encoded URL and decoded path, because it is being shared between `ngRoute` and `ngMocks`. This commit fixes the issue, by introducing an `isUrl` option that allows creating an appropriate RegExp for each usecase.
S
Susisu committed
510404e5b34fcf47a4d0cc8094afe7431b0a0b63
Parent: 937fb89
Committed by George Kalpakas <kalpakas.g@gmail.com>
on 8/25/2018, 8:38:40 PM