Skip to content

Commit 2633362

Browse files
committed
Fix search pattern escape
1 parent 362f23c commit 2633362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

[admin]/admin/client/admin_gui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function guiListLoadItems(list)
163163
local filter = guiGetText(listData.edit)
164164
guiGridListClear(listData.gridlist)
165165
for k, v in ipairs(listData.items) do
166-
if (v.text:lower():find(filter:lower())) then
166+
if (v.text:lower():find(filter:lower(), 1, true)) then
167167
local row = guiGridListAddRow(listData.gridlist)
168168
guiGridListSetItemText(listData.gridlist, row, 1, tostring ( v.text ), false, false )
169169
guiGridListSetItemData(listData.gridlist, row, 1, tostring ( v.data ) )

0 commit comments

Comments
 (0)