diff --git a/racket/collects/net/url-string.rkt b/racket/collects/net/url-string.rkt index 5febeaf4e3..dfef9ac1fe 100644 --- a/racket/collects/net/url-string.rkt +++ b/racket/collects/net/url-string.rkt @@ -399,10 +399,8 @@ (provide (struct-out url) (struct-out path/param)) (provide/contract - (string->url (-> (and/c string? - (or/c #rx"^[a-zA-Z][a-zA-Z0-9+.-]*:" - (not/c #rx"^[^:/?#]*:"))) - url?)) + (url-regexp regexp?) + (string->url (-> (and/c string? url-regexp) url?)) (path->url ((or/c path-string? path-for-some-system?) . -> . url?)) (relative-path->relative-url-string ((and/c (or/c path-string? path-for-some-system?) relative-path?)