endsWith

fun endsWith(suffix: String, ignoreCase: Boolean = false): StringRule(source)

Validate that the element ends with a given suffix.

Return

The rule on which this method has been invoked.

Parameters

suffix

The suffix the element should end with.

ignoreCase

Ignore distinction between upper- and lowercase if true.