feat: processing 체계를 일괄 변경

This commit is contained in:
Hide_D committed 2021-12-23 01:34:45 +09:00
1 parent 41d5df60f4
commit 2969ed2edc
16 files changed
+122 -66

No files matched your search

+4
View File
@@ -1,3 +1,4 @@
import { mb_strwidth } from "@/util/mb_strwidth";
import { isArray, isBoolean, isInteger, isString } from "lodash";
@@ -55,6 +56,9 @@ export function testSubmitArgs(args: Args): true | ['int' | 'string' | 'boolean'
if (!isString(testVal)) {
return ['string', stringKey, testVal];
}
if(stringKey == 'nationName' && mb_strwidth(testVal) > 18){
throw `길이가 반각 18자 분량을 넘었습니다.`;
}
}
for (const booleanKey of booleanArgs) {
const testVal = args[booleanKey];