You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We have some fields with pattern usage like /^.{0,130}$/gmi
If I create a new post, this works fine.
But when I edit a post, I receive an error message, that the fields content doesn't match my regex pattern.
Sometimes it works and sometimes it won't, seems to be very flaky ....
Works correctly
Should also work correctly
To Reproduce
Create a field configuration with a field like { label: 'Teaser', name: 'teaser', widget: 'text', pattern: [/^.{0,130}$/gmi, 'Max amount of 130 characters'], }
Create a new post with this field filled correctly (tested this using regexr.com)
Save the new post, all should works fine
Edit the post and add or remove a line
Try to save it, you'll receive an error
Expected behavior
Pattern work correctly on editing
Screenshots
See above
Applicable Versions:
"netlify-cms-app": "^2.15.72",
The text was updated successfully, but these errors were encountered:
Describe the bug
We have some fields with pattern usage like
/^.{0,130}$/gmi
If I create a new post, this works fine.
But when I edit a post, I receive an error message, that the fields content doesn't match my regex pattern.
Sometimes it works and sometimes it won't, seems to be very flaky ....
Works correctly
Should also work correctly
To Reproduce
Create a field configuration with a field like
{ label: 'Teaser', name: 'teaser', widget: 'text', pattern: [/^.{0,130}$/gmi, 'Max amount of 130 characters'], }
Create a new post with this field filled correctly (tested this using regexr.com)
Save the new post, all should works fine
Edit the post and add or remove a line
Try to save it, you'll receive an error
Expected behavior
Pattern work correctly on editing
Screenshots
See above
Applicable Versions:
The text was updated successfully, but these errors were encountered: