From d53cc0fe585acc668e5bc0dc762c881e286b4b99 Mon Sep 17 00:00:00 2001 From: David Hoepelman <992153+dhoepelman@users.noreply.github.com> Date: Fri, 10 May 2024 12:26:05 +0200 Subject: [PATCH] Fix merge error --- .../io/konform/validation/jsonschema/JsonSchema.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/commonMain/kotlin/io/konform/validation/jsonschema/JsonSchema.kt b/src/commonMain/kotlin/io/konform/validation/jsonschema/JsonSchema.kt index 2bf7ce9..2a87ec2 100644 --- a/src/commonMain/kotlin/io/konform/validation/jsonschema/JsonSchema.kt +++ b/src/commonMain/kotlin/io/konform/validation/jsonschema/JsonSchema.kt @@ -83,15 +83,6 @@ public fun ValidationBuilder.pattern(pattern: String): Constraint.uuid() = pattern("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") - -fun ValidationBuilder.pattern(pattern: String) = pattern(pattern.toRegex()) - - -fun ValidationBuilder.pattern(pattern: Regex) = addConstraint( - "must match the expected pattern", - pattern.toString() -) { it.matches(pattern) } - public fun ValidationBuilder.pattern(pattern: Regex): Constraint = addConstraint( "must match the expected pattern",