@@ -46,7 +46,7 @@ function getPlayerFromPartialName (name)
46
46
if getPlayerName (player ) == name then
47
47
return player
48
48
end
49
- if string.find (string.lower (getPlayerName (player )),string.lower (name ),0 ,false ) then
49
+ if string.find (string.lower (getPlayerName (player )),string.lower (name ),0 ,true ) then
50
50
table.insert (matches ,player )
51
51
end
52
52
end
@@ -62,7 +62,7 @@ function getTeamFromPartialName (name)
62
62
if getTeamName (team ) == name then
63
63
return team
64
64
end
65
- if string.find (string.lower (getTeamName (team )),string.lower (name ),0 ,false ) then
65
+ if string.find (string.lower (getTeamName (team )),string.lower (name ),0 ,true ) then
66
66
table.insert (matches ,team )
67
67
end
68
68
end
@@ -78,7 +78,7 @@ function getResourceFromPartialName (name)
78
78
if getResourceName (resource ) == name then
79
79
return resource
80
80
end
81
- if string.find (string.lower (getResourceName (resource )),string.lower (name ),0 ,false ) then
81
+ if string.find (string.lower (getResourceName (resource )),string.lower (name ),0 ,true ) then
82
82
table.insert (matches ,resource )
83
83
end
84
84
end
0 commit comments