We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a4cc49 commit 6b552ccCopy full SHA for 6b552cc
tests/urlpatterntestdata.json
@@ -3108,5 +3108,15 @@
3108
"hostname": { "input": "www.example.com", "groups": {} },
3109
"pathname": { "input": "/path/with/x", "groups": { "0": "path/with/x" } }
3110
}
3111
+ },
3112
+ {
3113
+ "pattern": [{ "hostname": ":domain(.*)" }],
3114
+ "inputs": [{ "hostname": "localhost" }],
3115
+ "expected_obj": {
3116
+ "hostname": ":domain(.*)"
3117
3118
+ "expected_match": {
3119
+ "hostname": { "input": "localhost", "groups": { "domain" : "localhost"} }
3120
+ }
3121
3122
]
0 commit comments