Skip to content

Commit

Permalink
Update blocks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoenig committed Jan 24, 2025
1 parent 9797beb commit eb3a59a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -12349,7 +12349,10 @@ InputSlotMorph.prototype.evaluate = function () {
return this.constant;
}
val = this.contents().text;
if (this.isNumeric && (!this.evaluateAsString || val === '')) {
if (this.isNumeric &&
!this.isAlphanumeric &&
(!this.evaluateAsString || val === '')
) {
return +val;
}
return val;
Expand Down

0 comments on commit eb3a59a

Please sign in to comment.