From f0833599b94e2d3baf69e5e6b4d2f79aff575a1e Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Wed, 26 Jun 2019 09:18:35 -0700 Subject: [PATCH] Remove default case-insensitivity --- lib/serializer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serializer.ts b/lib/serializer.ts index 1a7f142..100f43a 100644 --- a/lib/serializer.ts +++ b/lib/serializer.ts @@ -53,7 +53,7 @@ export class Serializer { failValidation("MultipleOf", MultipleOf); } if (Pattern) { - const pattern: RegExp = typeof Pattern === "string" ? new RegExp(Pattern, "i") : Pattern; + const pattern: RegExp = typeof Pattern === "string" ? new RegExp(Pattern) : Pattern; if ((typeof value !== "string") || (value.match(pattern) === null)) { failValidation("Pattern", Pattern); }