Files
2024-09-02 07:27:50 -07:00

14 lines
334 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# `kumo.string.trim(STRING)`
{{since('2024.09.02-c5476b89')}}
Returns a string with leading and trailing whitespace removed.
Whitespace is defined according to the terms of the Unicode Derived Core
Property `White_Space`, which includes newlines.
```lua
assert(kumo.string.trim '\n Hello\tworld\t\n' == 'Hello\tworld')
```