Why does string.find("1",".") return true when there is no "." in the string?

Hello I am having a problem I am trying to see if my numbers have a decimal in it using string.find but it always returns true even when it doesn’t

1 Like

string.find(“1”,”%.”)

Because “.” in Lua’s string patterns represents any character.

1 Like

The first one is the string the second one is the text that I’m looking for in the string

1 Like