Sha256: a47a3382d5db7f10421cf87e56787b29b8dbe9dd6a36fb00e9a995a144c4ac50

Contents?: true

Size: 613 Bytes

Versions: 7

Compression:

Stored size: 613 Bytes

Contents

"use strict";

var utils = require('./utils');

var OldValue =
/*#__PURE__*/
function () {
  function OldValue(unprefixed, prefixed, string, regexp) {
    this.unprefixed = unprefixed;
    this.prefixed = prefixed;
    this.string = string || prefixed;
    this.regexp = regexp || utils.regexp(prefixed);
  }
  /**
     * Check, that value contain old value
     */


  var _proto = OldValue.prototype;

  _proto.check = function check(value) {
    if (value.indexOf(this.string) !== -1) {
      return !!value.match(this.regexp);
    }

    return false;
  };

  return OldValue;
}();

module.exports = OldValue;

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
jester-data-8.0.0 node_modules/autoprefixer/lib/old-value.js
ezii-os-5.2.1 node_modules/autoprefixer/lib/old-value.js
ezii-os-2.0.1 node_modules/autoprefixer/lib/old-value.js
ezii-os-1.1.0 node_modules/autoprefixer/lib/old-value.js
ezii-os-1.0.0 node_modules/autoprefixer/lib/old-value.js
ezii-os-0.0.0.1.0 node_modules/autoprefixer/lib/old-value.js
ezii-os-0.0.0.0.1 node_modules/autoprefixer/lib/old-value.js