"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.formatExpire = void 0;
const formatExpire = function () {
  let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  let result = value;
  if (value.length === 1 && Number(value) > 1) result = "0".concat(value, "/");
  if (value.length >= 2 && Number(value.substring(0, 2)) > 12) result = value.replace(value.substring(0, 2), '12');
  return result;
};
exports.formatExpire = formatExpire;
//# sourceMappingURL=formatExpire.js.map