diff --git a/src/cljc/auto_ap/entities/shared.cljc b/src/cljc/auto_ap/entities/shared.cljc index d83cea24..b2363b46 100644 --- a/src/cljc/auto_ap/entities/shared.cljc +++ b/src/cljc/auto_ap/entities/shared.cljc @@ -3,7 +3,7 @@ [clojure.string :as str])) (def date-regex #"[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}") -(def money-regex #"[0-9]+(\.[0-9]{1,2})?$") +(def money-regex #"\-?[0-9]+(\.[0-9]{1,2})?$") (s/def ::identifier (s/nilable string?)) (s/def ::date (s/and string? #(re-matches date-regex %)))