diff --git a/consumer/java8/src/test/groovy/io/pactfoundation/consumer/dsl/LambdaDslJsonBodySpec.groovy b/consumer/java8/src/test/groovy/io/pactfoundation/consumer/dsl/LambdaDslJsonBodySpec.groovy index b25caf28e2..f2bfc87e7d 100644 --- a/consumer/java8/src/test/groovy/io/pactfoundation/consumer/dsl/LambdaDslJsonBodySpec.groovy +++ b/consumer/java8/src/test/groovy/io/pactfoundation/consumer/dsl/LambdaDslJsonBodySpec.groovy @@ -17,6 +17,6 @@ class LambdaDslJsonBodySpec extends Specification { def result = new JsonSlurper().parseText(body.pactDslObject.toString()) then: - result.test ==~ /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}[-+]\d+\[\w+\/\w+]/ + result.test ==~ /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}[-+]\d+\[\w+(\/\w+)?]/ } }