Capy-Bearer Documentation

str_starts_with

lib call

Capy

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

Description

Use str_starts_with to test a string prefix.

Return Values

true when the text starts with the prefix.

Example

Capy

print(str_starts_with("/doc", "/"), "\n")