pg-mvc-service 2.0.94 → 2.0.95
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.
|
@@ -775,7 +775,8 @@ class RequestType extends ReqResType_1.default {
|
|
|
775
775
|
if (property.maxLength !== undefined && stringValue.length > property.maxLength) {
|
|
776
776
|
this.throwInputError(isRequestBody ? "STRING_22" : "STRING_92", keys, value);
|
|
777
777
|
}
|
|
778
|
-
|
|
778
|
+
console.log(property.regExp, stringValue, property.regExp !== undefined ? property.regExp.test(stringValue) : 'No');
|
|
779
|
+
if (property.regExp !== undefined && property.regExp.test(stringValue) === false) {
|
|
779
780
|
this.throwInputError(isRequestBody ? "STRING_23" : "STRING_93", keys, value);
|
|
780
781
|
}
|
|
781
782
|
return stringValue;
|
package/package.json
CHANGED
|
@@ -809,7 +809,8 @@ export class RequestType extends ReqResType {
|
|
|
809
809
|
this.throwInputError(isRequestBody ? "STRING_22" : "STRING_92", keys, value);
|
|
810
810
|
}
|
|
811
811
|
|
|
812
|
-
|
|
812
|
+
console.log(property.regExp, stringValue, property.regExp !== undefined ? property.regExp.test(stringValue) : 'No');
|
|
813
|
+
if (property.regExp !== undefined && property.regExp.test(stringValue) === false) {
|
|
813
814
|
this.throwInputError(isRequestBody ? "STRING_23" : "STRING_93", keys, value);
|
|
814
815
|
}
|
|
815
816
|
|