mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 06:46:39 +02:00
✨ Disallow relative substraction in numeric fields
This commit is contained in:
parent
9aee88f9f1
commit
41bf436c3a
2 changed files with 15 additions and 8 deletions
|
@ -38,8 +38,8 @@
|
|||
second-value (interpret (second args) init-value)]
|
||||
(case operator
|
||||
"+" (+ init-value second-value)
|
||||
"-" (- init-value second-value)
|
||||
"*" (* init-value second-value)
|
||||
"-" (- 0 second-value) ;; Note that there is ambiguity, so we don't allow
|
||||
"*" (* init-value second-value) ;; relative substraction, it's only a negative number
|
||||
"/" (/ init-value second-value)))
|
||||
(let [value (interpret (first args) init-value)]
|
||||
(loop [value value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue