FUNCTION

text.endsWith

pure function endsWith(suffix: text): boolean

Deprecated (for removal): Use 'ends_with' instead

Checks if this text ends with the specified suffix.

Note that for all texts t, t.ends_with('') is true, and for all texts u and v such that u == v, u.ends_with(v) is true.

Parameters

  • suffix — the suffix to check

Returns

true if this text ends with the specified suffix, false otherwise

Since

0.9.0

Alias of text.ends_with

© 2026 Chromia