1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Fix regex

Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
This commit is contained in:
BlackImpostor 2025-05-31 08:19:18 +03:00 committed by GitHub
parent ab7416fe89
commit 045fa0dd3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -246,7 +246,7 @@ local function get_formspec(data)
end end
local function markup(text) local function markup(text)
text = text:gsub("(%*%*)([^%s][^*]-[^%s])%*%*", "<b>%2</b>") text = text:gsub("%*%*([^%s][^*]-[^%s])%*%*", "<b>%1</b>")
text = text:gsub("(%*)([^%s][^*]-[^%s])%*", "<i>%2</i>") text = text:gsub("(%*)([^%s][^*]-[^%s])%*", "<i>%2</i>")
text = text:gsub("* ", "<b>•</b> ") text = text:gsub("* ", "<b>•</b> ")
text = text:gsub("- ", "<b>•</b> ") text = text:gsub("- ", "<b>•</b> ")