Open dt-rtlayzell opened 10 months ago
version: 4.19.1
4.19.1
Adding a validation with a regexp that contains a negative lookahead appears to cause an error during migration, but adding the same pattern directly in Contentful UI works perfectly fine.
regexp
{ "status": "Unprocessable Entity", "message": "Validation error", "details": { "errors": [ { "name": "invalid", "details": "The property \"regexp\" is not valid", "path": [ "fields", 10, "validations", 0, "regexp" ], "value": { "pattern": "^(?!hello\\s)world$", "flags": "i" } } ] } }
I know this is old but...
I have found that Contentful does not like negative lookahead, so instead I use negated sets:
^[^hello\s]*(world)$
version:
4.19.1
Adding a validation with a
regexp
that contains a negative lookahead appears to cause an error during migration, but adding the same pattern directly in Contentful UI works perfectly fine.