jodd-core/src/main/java/jodd/util/StringUtil.java
public static int endsWithOne(final String src, final String... dest) {
		for (int i = 0; i < dest.length; i++) {
			String m = dest[i];
			if (m == null) {
				continue;
			}
			if (src.endsWith(m)) {
				return i;
			}
		}
		return -1;
	}
public static int endsWithOne(final String src, final String... dest) {
		for (int i = 0; i < dest.length; i++) {
			String m = dest[i];
			if (m == null) {
				continue;
			}
			if (src.endsWith(m)) {
				return i;
			}
		}
		return -1;
	}
Checks if string ends with at least one string from the provided array.
If at least one string is matched, it returns its index.
Otherwise, <code>-1</code> is returned.