* Describe the bug
I set a Pattern Validation Rule for a string (single line text) field, e.g. \d{4}. The validation only worked for the first editing. Subsequently, it always throws an error warning: “Study ID” with value “1001” fails to match the required pattern: /[object Object]/. It seems the regex expression was changed internally after the first submission.
* Environment
- NocoBase version: v2.0.0-alpha.56
- Database type and version: PostgreSQL 16
- OS: Server - Ubuntu 24.04.3 LTS, Client - Windows 11
- Deployment Methods: Docker
- Docker image version: nocobase/nocobase:2.0.0-alpha.56-full
- NodeJS version: NA
* How To Reproduce
- To set a Pattern Validation Rule (e.g. \d{4}) for a string (single line text) field (e.g. Study ID).
- The validation only worked for the first submission in the Edit Form. Subsequently, it always throws an error warning: “Study ID” with value “1001” fails to match the required pattern: /[object Object]/.
Expected behavior
It can check the field value against the regex expression.
Screenshots
NA
Logs
I don’t see any error log generated in docker compose logs when it gives the error warning in the Edit Form.



