|
2794 | 2794 | "inputs": [{ "pathname": "/FOO", "search": "BAR", "hash": "BAZ",
|
2795 | 2795 | "baseURL": "https://example.com:8080" }],
|
2796 | 2796 | "expected_obj": "error"
|
| 2797 | + }, |
| 2798 | + { |
| 2799 | + "pattern": [{ "search": "foo", "baseURL": "https://example.com/a/+/b" }], |
| 2800 | + "inputs": [{ "search": "foo", "baseURL": "https://example.com/a/+/b" }], |
| 2801 | + "exactly_empty_components": [ "username", "password", "port", "hash" ], |
| 2802 | + "expected_obj": { |
| 2803 | + "pathname": "/a/\\+/b" |
| 2804 | + }, |
| 2805 | + "expected_match": { |
| 2806 | + "hostname": { "input": "example.com", "groups": {} }, |
| 2807 | + "pathname": { "input": "/a/+/b", "groups": {} }, |
| 2808 | + "protocol": { "input": "https", "groups": {} }, |
| 2809 | + "search": { "input": "foo", "groups": {} } |
| 2810 | + } |
| 2811 | + }, |
| 2812 | + { |
| 2813 | + "pattern": [{ "hash": "foo", "baseURL": "https://example.com/?q=*&v=?&hmm={}&umm=()" }], |
| 2814 | + "inputs": [{ "hash": "foo", "baseURL": "https://example.com/?q=*&v=?&hmm={}&umm=()" }], |
| 2815 | + "exactly_empty_components": [ "username", "password", "port" ], |
| 2816 | + "expected_obj": { |
| 2817 | + "search": "q=\\*&v=\\?&hmm=\\{\\}&umm=\\(\\)" |
| 2818 | + }, |
| 2819 | + "expected_match": { |
| 2820 | + "hostname": { "input": "example.com", "groups": {} }, |
| 2821 | + "pathname": { "input": "/", "groups": {} }, |
| 2822 | + "protocol": { "input": "https", "groups": {} }, |
| 2823 | + "search": { "input": "q=*&v=?&hmm={}&umm=()", "groups": {} }, |
| 2824 | + "hash": { "input": "foo", "groups": {} } |
| 2825 | + } |
| 2826 | + }, |
| 2827 | + { |
| 2828 | + "pattern": [ "#foo", "https://example.com/?q=*&v=?&hmm={}&umm=()" ], |
| 2829 | + "inputs": [ "https://example.com/?q=*&v=?&hmm={}&umm=()#foo" ], |
| 2830 | + "exactly_empty_components": [ "username", "password", "port" ], |
| 2831 | + "expected_obj": { |
| 2832 | + "search": "q=\\*&v=\\?&hmm=\\{\\}&umm=\\(\\)", |
| 2833 | + "hash": "foo" |
| 2834 | + }, |
| 2835 | + "expected_match": { |
| 2836 | + "hostname": { "input": "example.com", "groups": {} }, |
| 2837 | + "pathname": { "input": "/", "groups": {} }, |
| 2838 | + "protocol": { "input": "https", "groups": {} }, |
| 2839 | + "search": { "input": "q=*&v=?&hmm={}&umm=()", "groups": {} }, |
| 2840 | + "hash": { "input": "foo", "groups": {} } |
| 2841 | + } |
2797 | 2842 | }
|
2798 | 2843 | ]
|
0 commit comments