Skip to content

Bars Specification 0.1.0 — Transform: rstrip

Category: string · Since: 0.1.0

Trims trailing whitespace.

Trims trailing Unicode whitespace from the string-coerced input, leaving leading whitespace untouched.

Input coercion: string

Arguments

None.

Arity: 0–0

Worked examples

[{{ phrase | rstrip }}]

[  hello]
[{{ phrase | upcase | rstrip }}]

[HELLO]

Full fixture: transforms/transform-rstrip.json