mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-08-19 00:01:07 +00:00
334 B
334 B
kumo.string.trim_end(STRING)
{{since('2024.09.02-c5476b89')}}
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')