- Delete old Vite+Svelte frontend - Initialize new SvelteKit project with TypeScript - Configure Tailwind CSS v4 + DaisyUI - Implement JWT authentication with auto-refresh - Create login page with form validation (Zod) - Add protected route guards - Update Docker configuration for single-stage build - Add E2E tests with Playwright (6/11 passing) - Fix Svelte 5 reactivity with $state() runes Known issues: - 5 E2E tests failing (timing/async issues) - Token refresh implementation needs debugging - Validation error display timing
23 lines
983 B
JavaScript
23 lines
983 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = isAbaRouting;
|
|
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
// http://www.brainjar.com/js/validation/
|
|
// https://www.aba.com/news-research/research-analysis/routing-number-policy-procedures
|
|
// series reserved for future use are excluded
|
|
var isRoutingReg = /^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;
|
|
function isAbaRouting(str) {
|
|
(0, _assertString.default)(str);
|
|
if (!isRoutingReg.test(str)) return false;
|
|
var checkSumVal = 0;
|
|
for (var i = 0; i < str.length; i++) {
|
|
if (i % 3 === 0) checkSumVal += str[i] * 3;else if (i % 3 === 1) checkSumVal += str[i] * 7;else checkSumVal += str[i] * 1;
|
|
}
|
|
return checkSumVal % 10 === 0;
|
|
}
|
|
module.exports = exports.default;
|
|
module.exports.default = exports.default; |