Skip to content

Commit 6b552cc

Browse files
committed
Update urlpatterntestdata.json
1 parent 1a4cc49 commit 6b552cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/urlpatterntestdata.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3108,5 +3108,15 @@
31083108
"hostname": { "input": "www.example.com", "groups": {} },
31093109
"pathname": { "input": "/path/with/x", "groups": { "0": "path/with/x" } }
31103110
}
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+
}
31113121
}
31123122
]

0 commit comments

Comments
 (0)