diff options
Diffstat (limited to 'builtin/mainmenu_helper.lua')
-rw-r--r-- | builtin/mainmenu_helper.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/mainmenu_helper.lua b/builtin/mainmenu_helper.lua index f5a470b72..a204b4a37 100644 --- a/builtin/mainmenu_helper.lua +++ b/builtin/mainmenu_helper.lua @@ -77,9 +77,9 @@ function fs_escape_string(text) text = newtext end - text = text:gsub("%[","%[%[") - text = text:gsub("]","]]") - text = text:gsub(";"," ") + text = text:gsub("%[","\\%[") + text = text:gsub("]","\\]") + text = text:gsub(";","\\;") end return text end |