Skip to content

Commit

Permalink
Remove whitespace from user expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Emik03 committed May 25, 2024
1 parent c8bbfad commit ec6c8f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ function draw()

count = clamp(count, 1, 256)
imgui.Separator()

showCalculator(textFlags)

imgui.PushItemWidth(100)
Expand Down Expand Up @@ -1663,5 +1662,7 @@ function calculator()
return parts[1], expression
end

return parseExpression
return function(x)
parseExpression(x:gsub("%s", ""))
end
end

0 comments on commit ec6c8f7

Please sign in to comment.