From 2a6a20e041673d56baf6c3771389d65be64662be Mon Sep 17 00:00:00 2001 From: Faron Dutton Date: Mon, 22 May 2023 07:06:21 -0400 Subject: [PATCH] Resolves improper anchoring of patternProperties Fixes #782 --- .../java/com/networknt/schema/regex/JDKRegularExpression.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/networknt/schema/regex/JDKRegularExpression.java b/src/main/java/com/networknt/schema/regex/JDKRegularExpression.java index e20c821db..877f6cecf 100644 --- a/src/main/java/com/networknt/schema/regex/JDKRegularExpression.java +++ b/src/main/java/com/networknt/schema/regex/JDKRegularExpression.java @@ -11,7 +11,7 @@ class JDKRegularExpression implements RegularExpression { @Override public boolean matches(String value) { - return this.pattern.matcher(value).matches(); + return this.pattern.matcher(value).find(); } } \ No newline at end of file