Capy-Bearer Documentation

str_ends_with

lib call

Capy

function str_ends_with(haystack : string, needle : string) bool

Description

Use str_ends_with to test a string suffix.

Return Values

true when the text ends with the suffix.

Example

Capy

print(str_ends_with("index.capy", ".capy"), "\n")