Skip to content

Commit

Permalink
fix greedy pattern in touchscreen modify command
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Dec 31, 2023
1 parent 68ad7b4 commit 0b76475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion touchscreen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ local function create_element_string(element, values)
end

local function modify_element_string(old, values)
local e = string.match(old, "^(.+)%[")
local e = string.match(old, "^(.-)%[")
local element = formspec_elements[e]
if type(element) == "function" then
return old -- No-op for special elements, as there is no format string
Expand Down

0 comments on commit 0b76475

Please sign in to comment.