endsWith(String toMatch)

Brief description of the method.

This method is available only in an Edge Encryption rule action script.

Table 1. Parameters
Name Type Description
toMatch String The string to match
Table 2. Returns
Type Description
Boolean True if the specified string matches the end of the target string.

This example is from the Vacation encryption-rule condition.

function VacationCondition(request) {
	if (endsWith(request.path, '/service_catalog.do') &&
		request.postParams.sysparm_action == 'execute_producer' &&
		request.postParams.sysparm_id == 'c322301653a33100c0eca5f4a11c084d')
			return true;
	return false;