function isMatchingPattern(value, pattern) {
    if (!isString$1(value)) {
        return false;
    }
    if (isRegExp$3(pattern)) {
        return pattern.test(value);
    }
    if (typeof pattern === 'string') {
        return value.indexOf(pattern) !== -1;
    }
    return false;
}
Checks if the value matches a regex or includes the string
@param value The string value to be checked against
@param pattern Either a regex or a string that must be contained in value