tf2-item-format
Version:
Format's TF2 items like backpack.tf does
13 lines • 507 B
JavaScript
;
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