mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 14:57:19 +02:00
🐛 Don't allow bitints on ::safe-number spec.
This commit is contained in:
parent
84e95ab4c2
commit
a3c583af1d
1 changed files with 3 additions and 2 deletions
|
@ -123,13 +123,14 @@
|
||||||
|
|
||||||
(s/def ::safe-integer
|
(s/def ::safe-integer
|
||||||
#(and
|
#(and
|
||||||
(integer? %)
|
(int? %)
|
||||||
(>= % min-safe-int)
|
(>= % min-safe-int)
|
||||||
(<= % max-safe-int)))
|
(<= % max-safe-int)))
|
||||||
|
|
||||||
(s/def ::safe-number
|
(s/def ::safe-number
|
||||||
#(and
|
#(and
|
||||||
(number? %)
|
(or (int? %)
|
||||||
|
(float? %))
|
||||||
(>= % min-safe-int)
|
(>= % min-safe-int)
|
||||||
(<= % max-safe-int)))
|
(<= % max-safe-int)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue