"use strict";
/*
 * Ported from https://github.com/optimizely/client-js/blob/7f84e6e779288d8870cac9e17309bb4a324ec5c2/src/plugins/view_feature_url/matchers/url.js
 *
 Match URL condition
 * @module
 */
var matchUrl = require('../match_url_helper');
/**
 * @type ConditionMatcher
 */
module.exports = {
    // specify the fields needed
    fieldsNeeded: ['url'],
    /**
     * @param {Object} value
     * @param {Condition} cond
     * @return {Boolean}
     */
    match: function (value, cond) {
        return matchUrl(value.url, cond);
    },
};
