>wowhelm_
~/forever/addon-api/function/string.rtrim

string.rtrim

documented function · LuaStringExtensions
string.rtrim(str, characters) : trimmed

Returns a string with all bytes in the specified character set removed from the end.

──ARGUMENTS
str
stringView (The string to trim.)
characters
stringView, default \r\n\t (The set of bytes to remove.)
──RETURNS
trimmed
stringView (The right-trimmed string.)
──DETAILS
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.