mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05: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
|
||||
#(and
|
||||
(integer? %)
|
||||
(int? %)
|
||||
(>= % min-safe-int)
|
||||
(<= % max-safe-int)))
|
||||
|
||||
(s/def ::safe-number
|
||||
#(and
|
||||
(number? %)
|
||||
(or (int? %)
|
||||
(float? %))
|
||||
(>= % min-safe-int)
|
||||
(<= % max-safe-int)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue