Detecting quotes in nickname
Discussion in 'Rust Development' started by Rusty, Apr 1, 2016.
-
Wulf Community Admin
lua-users wiki: Patterns Tutorial
orCode:string.match(str, '"')
Either should work I believe.Code:string.match(str, "\"")
-
How to in string.find ? Same?
-
Wulf Community Admin
Look at the link I gave you, it has plenty of examples on using them. The logic should be the same no matter which one you use. -
if string.find(user.displayName,"\"") == true then bingo? Should work?
-
Wulf Community Admin
string.find won't return a bool, string.match will. -
Will it return a nil if not found?
-
Wulf Community Admin
True/false I believe.
