@@ -46,7 +46,7 @@ function getPlayerFromPartialName (name)
4646 if getPlayerName (player ) == name then
4747 return player
4848 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
5050 table.insert (matches ,player )
5151 end
5252 end
@@ -62,7 +62,7 @@ function getTeamFromPartialName (name)
6262 if getTeamName (team ) == name then
6363 return team
6464 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
6666 table.insert (matches ,team )
6767 end
6868 end
@@ -78,7 +78,7 @@ function getResourceFromPartialName (name)
7878 if getResourceName (resource ) == name then
7979 return resource
8080 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
8282 table.insert (matches ,resource )
8383 end
8484 end
0 commit comments