(function() { var OldValue, utils; utils = require('./utils'); OldValue = (function() { function OldValue(_at_unprefixed, _at_prefixed, _at_string, _at_regexp) { this.unprefixed = _at_unprefixed; this.prefixed = _at_prefixed; this.string = _at_string; this.regexp = _at_regexp; this.regexp || (this.regexp = utils.regexp(this.prefixed)); this.string || (this.string = this.prefixed); } OldValue.prototype.check = function(value) { if (value.indexOf(this.string) !== -1) { return !!value.match(this.regexp); } else { return false; } }; return OldValue; })(); module.exports = OldValue; }).call(this);