i am working on command formatting right now, and for my code i have implemented this solution:
-- context
local Message = ".lock true"
local SL_SETTINGS = {CommandPrefix = "."}
-- actual script
local splitMessage = Message:split(" ")
local command = splitMessage[1]
local no_prefix = string.gsub(command, SL_SETTINGS.CommandPrefix, "")
print(command, no_prefix)
--> ".lock" ""
the issue i am experiencing is that line 8 is producing a substituted string that i don't want, i get an empty string when i expect "lock"
does anybody know why this is happening and how i could fix this code?

1 comment
oh my god, yes. i completely forgot about literals. thank you!