(extract-app-url url)
(extract-app-url "https://hoge.cybozu.com") => nil
(extract-app-url "https://hoge.cybozu.com/k/12") => "https://hoge.cybozu.com/k/12"
(extract-app-url "https://foo.s.cybozu.com/k/guest/11/1") => "https://foo.s.cybozu.com/k/guest/11/1"
(extract-app-url "https://hoge.hoge.com/k/11") => nil
(extract-app-url "https://hoge.cybozu.com") => nil (extract-app-url "https://hoge.cybozu.com/k/12") => "https://hoge.cybozu.com/k/12" (extract-app-url "https://foo.s.cybozu.com/k/guest/11/1") => "https://foo.s.cybozu.com/k/guest/11/1" (extract-app-url "https://hoge.hoge.com/k/11") => nil
(extract-base-url url)
(extract-base-url "https://hoge.cybozu.com") => "https://hoge.cybozu.com" (extract-base-url "https://hoge.cybozu.com/k/12") => "https://hoge.cybozu.com"
(extract-base-url "https://foo.s.cybozu.com/k/guest/11/1") => "https://foo.s.cybozu.com"
(extract-base-url "https://hoge.hoge.com/k/11") => nil
(extract-base-url "https://hoge.cybozu.com") => "https://hoge.cybozu.com" (extract-base-url "https://hoge.cybozu.com/k/12") => "https://hoge.cybozu.com" (extract-base-url "https://foo.s.cybozu.com/k/guest/11/1") => "https://foo.s.cybozu.com" (extract-base-url "https://hoge.hoge.com/k/11") => nil
(parse-app-url url)
(parse-app-url "https://hoge.cybozu.com") => nil
(parse-app-url "https://hoge.cybozu.com/k/12") => {:domain "cybozu.com", :subdomain "hoge", :app-id "12"}
(parse-app-url "https://foo.s.cybozu.com/k/guest/11/1") => {:domain "cybozu.com", :subdomain "foo", :guest-space-id "11", :app-id "1"}
(parse-app-url "https://hoge.hoge.com/k/11") => nil
(parse-app-url "https://hoge.cybozu.com") => nil (parse-app-url "https://hoge.cybozu.com/k/12") => {:domain "cybozu.com", :subdomain "hoge", :app-id "12"} (parse-app-url "https://foo.s.cybozu.com/k/guest/11/1") => {:domain "cybozu.com", :subdomain "foo", :guest-space-id "11", :app-id "1"} (parse-app-url "https://hoge.hoge.com/k/11") => nil
(parse-base-url url)
(parse-base-url "https://hoge.cybozu.com") => {:domain "cybozu.com", :subdomain "hoge"} (parse-base-url "https://hoge.cybozu.com/k/12") => {:domain "cybozu.com", :subdomain "hoge"}
(parse-base-url "https://foo.s.cybozu.com/k/guest/11/1") => {:domain "cybozu.com", :subdomain "foo"}
(parse-base-url "https://hoge.hoge.com/k/11") => nil
(parse-base-url "https://hoge.cybozu.com") => {:domain "cybozu.com", :subdomain "hoge"} (parse-base-url "https://hoge.cybozu.com/k/12") => {:domain "cybozu.com", :subdomain "hoge"} (parse-base-url "https://foo.s.cybozu.com/k/guest/11/1") => {:domain "cybozu.com", :subdomain "foo"} (parse-base-url "https://hoge.hoge.com/k/11") => nil
(valid-app-url? url)
(valid-app-url? "https://hoge.cybozu.com") => false
(valid-app-url? "https://hoge.cybozu.com/k/12") => true
(valid-app-url? "https://foo.s.cybozu.com/k/guest/11/1") => true
(valid-app-url? "https://hoge.hoge.com/k/11") => false
(valid-app-url? "https://hoge.cybozu.com") => false (valid-app-url? "https://hoge.cybozu.com/k/12") => true (valid-app-url? "https://foo.s.cybozu.com/k/guest/11/1") => true (valid-app-url? "https://hoge.hoge.com/k/11") => false
(valid-base-url? url)
(valid-base-url? "https://hoge.cybozu.com") => true (valid-base-url? "https://hoge.cybozu.com/k/12") => true
(valid-base-url? "https://foo.s.cybozu.com/k/guest/11/1") => true
(valid-base-url? "https://hoge.hoge.com/k/11") => false
(valid-base-url? "https://hoge.cybozu.com") => true (valid-base-url? "https://hoge.cybozu.com/k/12") => true (valid-base-url? "https://foo.s.cybozu.com/k/guest/11/1") => true (valid-base-url? "https://hoge.hoge.com/k/11") => false
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close