Incorrect argument types for match/find string library functions

#1

string.find the last argument plain should be listed as a bool, not a number.

image


string.match last argument is a number, not a string, and from the description:

“A third, optional numerical argument init specifies where to start the search; its default value is 1 and can be negative.”

So it should be number init = 1

image

https://developer.roblox.com/articles/Lua-Libraries/string

4 Likes

closed #2

This topic was automatically closed after 1 minute. New replies are no longer allowed.

0 Likes

opened #3
1 Like