1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +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:41 +03:00 committed by GitHub
parent 045fa0dd3c
commit 745f2f42da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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