@widergy/web-utils
Version:
Utility GO! Web utils
29 lines (28 loc) • 855 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.naranjaRulesDefinition = exports.cabalRulesDefinition = exports.cards = void 0;
const regularExpressions_1 = require("./regularExpressions");
exports.cards = {
VISA: 'visa',
VISA_ELECTRON: 'visaelectron',
HIPERCARD: 'hipercard',
MAESTRO: 'maestro',
CABAL: 'cabal',
NARANJA: 'naranja',
};
exports.cabalRulesDefinition = {
type: exports.cards.CABAL,
pattern: regularExpressions_1.cabalRegex,
format: regularExpressions_1.creditCardsDefaultFormat,
length: [16],
cvcLength: [3],
luhn: true,
};
exports.naranjaRulesDefinition = {
type: exports.cards.NARANJA,
pattern: regularExpressions_1.naranjaRegex,
format: regularExpressions_1.creditCardsDefaultFormat,
length: [16],
cvcLength: [3],
luhn: true,
};