Closed minafarid closed 5 years ago
Use in instead of .find() to match strings. This was causing an error if find() returns 0, then the if condition would evaluate to false even if find() returned a valid position.
in
.find()
find()
0
Use
in
instead of.find()
to match strings. This was causing an error iffind()
returns0
, then the if condition would evaluate to false even iffind()
returned a valid position.