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:
parent
ab7416fe89
commit
045fa0dd3c
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ local function get_formspec(data)
|
|||
end
|
||||
|
||||
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("* ", "<b>•</b> ")
|
||||
text = text:gsub("- ", "<b>•</b> ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue