Sha256: 1d9e4ad642111bb7c3bd38e4063488e968278c26bb13a03c874d73206c588be0

Contents?: true

Size: 607 Bytes

Versions: 10

Compression:

Stored size: 607 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.includes(this.string)) {
      return !!value.match(this.regexp);
    }

    return false;
  };

  return OldValue;
}();

module.exports = OldValue;

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/autoprefixer/lib/old-value.js
disco_app-0.18.2 test/dummy/node_modules/autoprefixer/lib/old-value.js
disco_app-0.16.1 test/dummy/node_modules/autoprefixer/lib/old-value.js
disco_app-0.15.2 test/dummy/node_modules/autoprefixer/lib/old-value.js
disco_app-0.18.4 test/dummy/node_modules/autoprefixer/lib/old-value.js
disco_app-0.18.1 test/dummy/node_modules/autoprefixer/lib/old-value.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/autoprefixer/lib/old-value.js
disco_app-0.14.0 test/dummy/node_modules/autoprefixer/lib/old-value.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/autoprefixer/lib/old-value.js
enju_library-0.3.8 spec/dummy/node_modules/autoprefixer/lib/old-value.js