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