We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f35b818 + 586fc59 commit fc6de6fCopy full SHA for fc6de6f
modules/__tests__/getParams-test.js
@@ -102,6 +102,16 @@ describe('getParams', function () {
102
expect(getParams(pattern, '/users/123')).toBe(null);
103
});
104
105
+
106
+ describe('and the path contains multiple special URL encoded characters', function () {
107
+ var pattern = '/foo/:component';
108
109
+ describe('and the path matches', function () {
110
+ it('returns the correctly decoded characters', function () {
111
+ expect(getParams(pattern, '/foo/%7Bfoo%24bar')).toEqual({ component: '{foo$bar' });
112
+ });
113
114
115
116
117
describe('when a pattern has a *', function () {
0 commit comments