Available in all subroutines.

True if the string needle ends the string haystack. An empty string is not considered a suffix.

Returns false otherwise.

See std.replace_suffix for substituting a suffix.


set req.http.X-ss = std.suffixof("rectangles", "angles");

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.