File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,12 @@ def register(self, cls: Matcher) -> None:
6969 path=org/repo,
7070 matcher=core-git-scp)
7171
72- We need something more specific. What do we do?
72+ >>> GitURL(url="github:org/repo").to_url()
73+ 'git@github:org/repo'
74+
75+ Eek. That won't work, can't do much with that one.
76+
77+ We need something more specific so usable URLs can be generated. What do we do?
7378
7479 **Extending matching capability:**
7580
@@ -111,8 +116,8 @@ def register(self, cls: Matcher) -> None:
111116 >>> GitHubURL.is_valid(url='gitlab:vcs-python/libvcs')
112117 False
113118
114- `GitHubURL` sees this as invalid since it only has one matcher,
115- `GitHubPrefix`.
119+ `` GitHubURL` ` sees this as invalid since it only has one matcher,
120+ `` GitHubPrefix` `.
116121
117122 >>> GitURL.is_valid(url='gitlab:vcs-python/libvcs')
118123 True
You can’t perform that action at this time.
0 commit comments