UNPKG

tf2-item-format

Version:
13 lines 507 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = default_1; function default_1(name) { const vintageCount = name.match(/Vintage /g); return (!!vintageCount && (vintageCount.length === 2 || !isVintageException(name))); } const VINTAGE_EXCEPTIONS = ['Vintage Merryweather', 'Vintage Tyrolean']; function isVintageException(name) { return VINTAGE_EXCEPTIONS.some((exception) => name.includes(exception)); } //# sourceMappingURL=isVintage.js.map