diff --git a/[editor]/editor_gui/client/load.lua b/[editor]/editor_gui/client/load.lua index 520d5f691..2103c23a2 100644 --- a/[editor]/editor_gui/client/load.lua +++ b/[editor]/editor_gui/client/load.lua @@ -75,9 +75,8 @@ function openSearch() guiGridListSetItemText ( loadDialog.mapsList, row, 3, res["version"], false, false ) end else - local escapedText = string.gsub(string.lower(text), "([%-%.%+%*%?%[%]%^%$%(%)%%])", "%%%1") for i,res in ipairs(openResources) do - if string.find(res["friendlyName"], escapedText) then + if utf8.find(utf8.lower(res["friendlyName"]), utf8.lower(text), 1, true) then local row = guiGridListAddRow ( loadDialog.mapsList ) guiGridListSetItemText ( loadDialog.mapsList, row, 1, res["friendlyName"], false, false ) guiGridListSetItemText ( loadDialog.mapsList, row, 2, res["gamemodes"], false, false )