mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-21 20:08:18 +00:00
318 B
318 B
kumo.string.trim_end(STRING)
{{since('dev')}}
Returns a string with trailing whitespace removed.
‘Whitespace’ is defined according to the terms of the Unicode Derived Core
Property White_Space, which includes newlines.
assert(kumo.string.trim_end '\n Hello\tworld\t\n' == '\n Hello\tworld')