From db0ce30f2215a7983d43a86855d0a36bf0b12bc0 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Tue, 26 Jan 2021 19:22:38 +0800 Subject: feat: change the ui struc of csmf creating model Change-Id: I5963b93d6ca0ef21556da2728e39e15b8b72f260 Issue-ID: USECASEUI-531 Signed-off-by: cyuamber --- usecaseui-portal/src/app/shared/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usecaseui-portal/src/app/shared') diff --git a/usecaseui-portal/src/app/shared/utils/utils.ts b/usecaseui-portal/src/app/shared/utils/utils.ts index 6864d60d..63e19075 100644 --- a/usecaseui-portal/src/app/shared/utils/utils.ts +++ b/usecaseui-portal/src/app/shared/utils/utils.ts @@ -35,7 +35,7 @@ export class Util { getRulesText(words: string, title: string, index: number, rulesText: any[]){ return rulesText[index] = words + title }; - validator(title: string, key: string, val: any, index: number, rulesText: any[], validateRulesShow: any[]) { + validator(title: string="", key: string="", val: any="", index: number=0, rulesText: any[]=[], validateRulesShow: any[]=[]) { let maxNumberReg = /^([1-9]\d{0,4}|100000)$/, // Check integer between 1 ~ 100000 expDataRateReg = /^([1-9]\d{2}|[1-3]\d{3}|3000)$/, // Check integer between 100 ~ 3000 latencyReg = /^1[0-9]$|^[2-9]\d$|^1\d{2}$|^200$/; // Check integers between 10 and 200 -- cgit 1.2.3-korg