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:
parent
045fa0dd3c
commit
745f2f42da
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue