Regex Error: TypeError: Cannot delete property 'regex' of #<Object>

System Information
  • Strapi Version: 3.4.0-beta.3:
  • Operating System: MacOS Catalina:
  • Database: sqlite:
  • Node Version: 10.10.0:
  • NPM Version: 6.4.1:
  • Yarn Version:

I am trying to make a Regex Pattern for a Slug field. I am using the Regex input in the Strapi UI and I have tried a couple of patterns:

Both give me an error when adding a new article:

TypeError: Cannot delete property 'regex' of #<Object>
    at createYupSchemaAttribute (main.c73ac8cc.chunk.js:301534)

Any help will be massively appreciated.

Same here…

This is my stack:

  • Strapi: 3.4.5
  • Database: Postgres 13
  • Node: 14.15.4

and my regex are:


# Email

I get that same error, and it prevents my content to be saved.

I see a fix has been merged into master: Fix regex validation by soupette · Pull Request #9237 · strapi/strapi · GitHub

I guess we’ll see it in next patched version.

Hi Mrwindmills,

Can you please tell me? In which file it had been updated.