File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 4444 (test " q=cats" (uri-query (string->uri str)))
4545 (test " recent" (uri-fragment (string->uri str))))
4646
47+ (let ((str " ssh://git@codeberg.org/retropikzel/snow-chibi-testing.git" ))
48+ (test-assert (uri? (string->uri str)))
49+ (test 'ssh (uri-scheme (string->uri str)))
50+ (test " git" (uri-user (string->uri str)))
51+ (test " codeberg.org" (uri-host (string->uri str)))
52+ (test #f (uri-port (string->uri str)))
53+ (test " /retropikzel/snow-chibi-testing.git"
54+ (uri-path (string->uri str)))
55+ (test #f (uri-query (string->uri str)))
56+ (test #f (uri-fragment (string->uri str))))
57+
4758 (test " /%73" (uri-path (string->uri " http://google.com/%73" )))
4859 (test " /s" (uri-path (string->uri " http://google.com/%73" #t )))
4960 (test " a=1&b=2;c=3"
Original file line number Diff line number Diff line change 151151 (%make-uri
152152 scheme
153153 (and (string-cursor>? at sc2)
154- (decode (substring-cursor str sc2 at)))
154+ (decode
155+ (substring-cursor str sc2 (string-cursor-prev str at))))
155156 (decode
156157 (substring-cursor
157158 str
158- (if (string-cursor>? at sc2) (string-cursor-next str at) sc2)
159+ (if (string-cursor>? at sc2) at sc2)
159160 (if (string-cursor<? colon3 slash)
160161 colon3
161162 slash)))
You can’t perform that action at this time.
0 commit comments