Sha256: c7697603c02e6e6714b0999248d045d56a59c36e4d851e5bdba5c6ca52cee878

Contents?: true

Size: 606 Bytes

Versions: 45

Compression:

Stored size: 606 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

45 entries across 44 versions & 6 rubygems

Version Path
trusty-cms-6.3.1 node_modules/autoprefixer/lib/old-value.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/autoprefixer/lib/old-value.js
boring_generators-0.14.0 tmp/templates/app_template/node_modules/autoprefixer/lib/old-value.js
optimacms-0.1.61 spec/dummy/node_modules/autoprefixer/lib/old-value.js
boring_generators-0.13.0 tmp/templates/app_template/node_modules/autoprefixer/lib/old-value.js
boring_generators-0.12.0 tmp/templates/app_template/node_modules/autoprefixer/lib/old-value.js
trusty-cms-5.0.7 node_modules/autoprefixer/lib/old-value.js
trusty-cms-5.0.6 node_modules/autoprefixer/lib/old-value.js
trusty-cms-5.0.5 node_modules/autoprefixer/lib/old-value.js
trusty-cms-5.0.4 node_modules/autoprefixer/lib/old-value.js
trusty-cms-5.0.3 node_modules/autoprefixer/lib/old-value.js
trusty-cms-5.0.2 node_modules/autoprefixer/lib/old-value.js
trusty-cms-5.0.1 node_modules/autoprefixer/lib/old-value.js
trusty-cms-4.3.5 node_modules/autoprefixer/lib/old-value.js
trusty-cms-5.0.0 node_modules/autoprefixer/lib/old-value.js
trusty-cms-4.3.4 node_modules/autoprefixer/lib/old-value.js
trusty-cms-4.3.3 node_modules/autoprefixer/lib/old-value.js
trusty-cms-4.3.2 node_modules/autoprefixer/lib/old-value.js
trusty-cms-4.3.1 node_modules/autoprefixer/lib/old-value.js
boring_generators-0.11.0 tmp/templates/app_template/node_modules/autoprefixer/lib/old-value.js