Quick actions

cmd+k|ctrl+k

Navigation

Languages

Whitespace

Snippet info

Language

Lua

Visibility

public

Author

legacy-v1-16166

Created

2023-07-27T08:58:33.643098Z

Updated

2023-07-27T09:00:55.942164Z

-- \0 is a "null terminator", basically declares the end of a string

-- declare the original team
local Team = "AdminTeam\0"
-- substitute all null terminators with nothing
local Parsed = string.gsub(Team, "%z", "")

-- check
print(Team == "AdminTeam") --> false
print(Parsed == "AdminTeam") --> true
INFO