@Override
    public boolean isPattern(@Nullable String path) {
        if (path == null) {
            return false;
        }
        boolean uriVar = false;
        for (int i = 0; i < path.length(); i++) {
            char c = path.charAt(i);
            if (c == '*' || c == '?') {
                return true;
            }
            if (c == '{') {
                uriVar = true;
                continue;
            }
            if (c == '}' && uriVar) {
                return true;
            }
        }
        return false;
    }
Create a new instance with the {link #DEFAULT_PATH_SEPARATOR}.
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/util/AntPathMatcher.java