Skip to content

Commit 2071709

Browse files
authored
Fixed shop search (#1801)
This fixes the shop search breaking when using certain special characters because of luaPatterns Fixes #1800
1 parent f1d30c7 commit 2071709

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
77
### Fixed
88

99
- Fixed health station continuous use not working (by @wgetJane)
10+
- Fixed the shop search breaking when using certain special characters (by @NickCloudAT)
1011

1112
## [v0.14.3b](https://github.com/TTT-2/TTT2/tree/v0.14.3b) (2025-03-18)
1213

gamemodes/terrortown/gamemode/client/cl_equip.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ local function CreateEquipmentList(t)
409409
local equipName = GetEquipmentTranslation(item.name, item.PrintName)
410410

411411
if
412-
t.search and string.find(string.lower(equipName), string.lower(t.search))
412+
t.search and string.find(string.lower(equipName), string.lower(t.search), 1, true)
413413
or not t.search
414414
then
415415
local ic = nil

0 commit comments

Comments
 (0)