I am just starting with Strapi I want to know to add Space not allow validation to an input field

[details=“System Information”]

  • Strapi Version: v4.2.3
  • Operating System: Windows 10
  • Database: mysql
  • Node Version: v14.15.3
  • NPM Version: 8.15.1


I tried the regex pattern but it didnt work while saving the new entries

depending on where the entery is aka a content-type or component.

in content-types you can use beforecreate and before update to do your santiy checks
for components it is a little bit harder and you would have to add a route middleware