law-common 10.63.1-beta.1 → 10.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,10 +3,8 @@ export declare class CodeValidatorUtil {
|
|
|
3
3
|
static readonly TAN_REGEX: RegExp;
|
|
4
4
|
static readonly GST_REGEX: RegExp;
|
|
5
5
|
static readonly ADDHAR_REGEX: RegExp;
|
|
6
|
-
static readonly IFSC_REGEX: RegExp;
|
|
7
6
|
static isValidPAN(value: string): boolean;
|
|
8
7
|
static isValidTAN(value: string): boolean;
|
|
9
8
|
static isValidGST(value: string): boolean;
|
|
10
9
|
static isValidAddhar(value: string): boolean;
|
|
11
|
-
static isValidateIFSCCode(value: string): boolean;
|
|
12
10
|
}
|
|
@@ -15,9 +15,6 @@ class CodeValidatorUtil {
|
|
|
15
15
|
static isValidAddhar(value) {
|
|
16
16
|
return this.ADDHAR_REGEX.test(value);
|
|
17
17
|
}
|
|
18
|
-
static isValidateIFSCCode(value) {
|
|
19
|
-
return this.IFSC_REGEX.test(value === null || value === void 0 ? void 0 : value.toUpperCase());
|
|
20
|
-
}
|
|
21
18
|
}
|
|
22
19
|
exports.CodeValidatorUtil = CodeValidatorUtil;
|
|
23
20
|
// ---- private constants ----
|
|
@@ -25,4 +22,3 @@ CodeValidatorUtil.PAN_REGEX = /^[A-Z]{5}[0-9]{4}[A-Z]{1}$/;
|
|
|
25
22
|
CodeValidatorUtil.TAN_REGEX = /^[A-Z]{4}[0-9]{5}[A-Z]{1}$/;
|
|
26
23
|
CodeValidatorUtil.GST_REGEX = /^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$/;
|
|
27
24
|
CodeValidatorUtil.ADDHAR_REGEX = /^[2-9]{1}[0-9]{3}[0-9]{4}[0-9]{4}$/;
|
|
28
|
-
CodeValidatorUtil.IFSC_REGEX = /^[A-Z]{4}0[A-Z0-9]{6}$/;
|