>wowhelm_
~/forever/addon-api/function/C_StringUtil.RemoveContiguousSpaces

C_StringUtil.RemoveContiguousSpaces

documented function · StringUtil
C_StringUtil.RemoveContiguousSpaces(text, maxAllowedSpaces) : trimmedText

Returns a string with all contiguous occurrences of ASCII space characters truncated.

──ARGUMENTS
text
stringView
maxAllowedSpaces
number, never secret (Maximum number of permitted contiguous space characters; excessive spaces will be truncated to this count.)
──RETURNS
trimmedText
string
──DETAILS
Secret Arguments
AllowedWhenTainted
──VERSION HISTORY

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