Files
kumomta/docs/reference/string/trim_end.md
T

318 B
Raw Blame History

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')