Skip to content

Commit

Permalink
use find instead of sub/== for pack searches
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 29, 2018
1 parent 9f51065 commit b3fd361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Themes/_fallback/Scripts/09 PackList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function PackList:FilterAndSearch(name, avgMin, avgMax, sizeMin, sizeMax)
local d = x[getAvgDiffPropName](x)
local n = x[getNamePropName](x)
local s = x[getSizePropName](x)
local valid = string.lower(n):sub(1, #name) == string.lower(name)
local valid = string.find(string.lower(n), string.lower(name))
if d > 0 then
if avgMin > 0 then
valid = valid and d > avgMin
Expand Down

0 comments on commit b3fd361

Please sign in to comment.