public/bundle.js
/** Tests if a StringMatch matches a string value */
Tests if a StringMatch matches a string value
Tests if a StringMatch matches a string value
function IsStringMatch(value, match) {
        var _a, _b;
        var localValue = value;
        var localExpr = match.expr;
        switch (match.type) {
            case 'exact':
                if (!match.cs) {
                    _a = CaseDesensitize(localValue, localExpr), localValue = _a[0], localExpr = _a[1];
                }
                return localValue === localExpr;
            case 'contains':
                if (!match.cs) {
                    _b = CaseDesensitize(localValue, localExpr), localValue = _b[0], localExpr = _b[1];
                }
                return localValue.includes(localExpr);
            default:
                console.warn("Unknown string match type " + match.type + " will be ignored.");
                return false;
        }
    }
function IsStringMatch ( value , match ) { var _a , _b ; var localValue = value ; var localExpr = match . expr ; switch ( match . type ) { case 'exact' : if ( ! match . cs ) { _a = CaseDesensitize ( localValue , localExpr ) , localValue = _a [ 0 ] , localExpr = _a [ 1 ] ; } return localValue === localExpr ; case 'contains' : if ( ! match . cs ) { _b = CaseDesensitize ( localValue , localExpr ) , localValue = _b [ 0 ] , localExpr = _b [ 1 ] ; } return localValue . includes ( localExpr ) ; default : console . warn ( "Unknown string match type " + match . type + " will be ignored." ) ; return false ; } }
Tests if a StringMatch matches a string value
Tests if a StringMatch matches a string value