"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.testExpire = void 0;
var _locale = require("@mirai/locale");
const testExpire = expire => {
  const now = (0, _locale.UTC)(new Date());
  return !expire || (expire === null || expire === void 0 ? void 0 : expire.length) === 5 && expire.indexOf('/') === 2 && (0, _locale.UTC)((0, _locale.parseDate)("01".concat(expire.slice(0, 2)).concat(expire.slice(3)), 'DDMMYY')) >= (0, _locale.UTC)(new Date(now.getFullYear(), now.getMonth(), 1));
};
exports.testExpire = testExpire;
//# sourceMappingURL=testExpire.js.map