fix: 修复配额说明重复和undefined问题
- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
15
backend/node_modules/validator/es/lib/isAbaRouting.js
generated
vendored
Normal file
15
backend/node_modules/validator/es/lib/isAbaRouting.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import assertString from './util/assertString';
|
||||
|
||||
// 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}$/;
|
||||
export default function isAbaRouting(str) {
|
||||
assertString(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;
|
||||
}
|
||||
Reference in New Issue
Block a user