We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ecbde50 + efdc798 commit 2047cfaCopy full SHA for 2047cfa
1 file changed
src/litegraph.js
@@ -10034,7 +10034,7 @@ LGraphNode.prototype.executeAction = function(action)
10034
if (event.click_time < 200 && delta == 0) {
10035
this.prompt("Value",w.value,function(v) {
10036
// check if v is a valid equation or a number
10037
- if (/^[0-9+\-*/()\s]+$/.test(v)) {
+ if (/^[0-9+\-*/()\s]+|\d+\.\d+$/.test(v)) {
10038
try {//solve the equation if possible
10039
v = eval(v);
10040
} catch (e) { }
0 commit comments