diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html
index 3c7c8b6e64..208453a0c9 100644
--- a/spring-cloud-contract.html
+++ b/spring-cloud-contract.html
@@ -6797,9 +6797,9 @@ or just set the ignored property on the contract itself:
// `name` and `content`. You can also call `named("fileName", "fileContent")`
file: named(
// name of the file
- name: $(c(regex('.+')), p('filename.csv')),
+ name: $(c(regex(nonEmpty())), p('filename.csv')),
// content of the file
- content: $(c(regex('.+')), p('file content')))
+ content: $(c(regex(nonEmpty())), p('file content')))
)
}
response {