fix unexpected ")"

This commit is contained in:
Xertis 2025-01-25 23:32:20 +03:00 committed by GitHub
parent 224f5d9aee
commit 46c38edf8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -195,7 +195,7 @@ function gui.template(name, params)
text = text:gsub("if%s*=%s*\"%%{%w+}\"", "if=\"\"")
-- remove unsolved properties: attr='%{var}'
text = text:gsub("%w+%s*=%s*'%%{%w+}'%s?", "")
text = text:gsub('%s*%S+="%%{[^}]+}"%s*', " "))
text = text:gsub('%s*%S+="%%{[^}]+}"%s*', " ")
return text
end