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