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.
1 parent 897c321 commit 4609310Copy full SHA for 4609310
1 file changed
giturlparse/parser.py
@@ -52,7 +52,8 @@ def parse(url, check_domain=True):
52
parsed_info.update(platform.DEFAULTS)
53
54
# Get matches as dictionary
55
- matches = platform.clean_data(match.groupdict(default=""))
+ matches = platform.clean_data({k: v if v is not None else platform.DEFAULTS.get(k, "")
56
+ for k, v in match.groupdict().items()})
57
58
# Update info with matches
59
parsed_info.update(matches)
0 commit comments