From 1b42a0e5a69be7151831482667c524d013d34727 Mon Sep 17 00:00:00 2001 From: Sorata <39014375+q8X@users.noreply.github.com> Date: Fri, 19 Sep 2025 12:56:01 +0300 Subject: [PATCH 1/2] Fix broken case insensitivee previously the old method was making the search term lowercase leaving the map name in the original case --- [editor]/editor_gui/client/load.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/[editor]/editor_gui/client/load.lua b/[editor]/editor_gui/client/load.lua index 520d5f691..5be87fc30 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(string.lower(res["friendlyName"]), string.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 ) From d8f6a5728b3ad17b501c001029a421248a7c7b41 Mon Sep 17 00:00:00 2001 From: Sorata <39014375+q8X@users.noreply.github.com> Date: Fri, 19 Sep 2025 13:18:18 +0300 Subject: [PATCH 2/2] utf8.lower instead of string.lower --- [editor]/editor_gui/client/load.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[editor]/editor_gui/client/load.lua b/[editor]/editor_gui/client/load.lua index 5be87fc30..2103c23a2 100644 --- a/[editor]/editor_gui/client/load.lua +++ b/[editor]/editor_gui/client/load.lua @@ -76,7 +76,7 @@ function openSearch() end else for i,res in ipairs(openResources) do - if utf8.find(string.lower(res["friendlyName"]), string.lower(text), 1, true) 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 )