protected boolean doesUriMatchPattern(final String requestPath, final List<String> patternUrls) {
        return patternUrls.stream().anyMatch(patternUrl -> {
            val pattern = Pattern.compile('/' + patternUrl + "(/)*$");
            return pattern.matcher(requestPath).find();
        });
    }
Does uri match pattern.

@param requestPath the request path
@param patternUrls the pattern urls
@return true /false
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java