You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
376 B
Clojure
10 lines
376 B
Clojure
(ns org.domaindrivenarchitecture.fed-poc.predicates
|
|
(:require [clojure.string :as str]
|
|
[lambdaisland.uri :as uri]))
|
|
|
|
; TODO: Find out, how this can be better parsed (e.g. via lambdaisland/uri)
|
|
(defn uri-string? [input]
|
|
(let [parsed-uri (uri/uri input)]
|
|
(= input (str parsed-uri))))
|
|
;(and (string? input)
|
|
; (re-matches #"\w+:(\/?\/?)[^\s]+" input))) |