Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Validator] Revert Slug constraint#60475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This commit revertssymfony#58542.
cc@raffaelecarelle, as the original author of the PR. If there is something we're overlooking or you see value in the constraint that I'm missing, please feel free to share it here so we can consider it. |
ajgarlag commentedMay 19, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think PR#59383 should be reverted too |
94noni commentedMay 19, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Warning you must also update/amend the correspondingblogpost otherwise ppl will think its a fail of release no ? |
PR on 6.4 to remove the translations:#60486 |
Thank you@wouterj. |
9ec163b
intosymfony:7.3Uh oh!
There was an error while loading.Please reload this page.
This PR was merged into the 6.4 branch.Discussion----------Remove translations for slug validation error| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | no| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Issues || License | MITRelated to#60475Commits-------42eb1c0 Remove translations for slug validation error
Uh oh!
There was an error while loading.Please reload this page.
After an internal discussion, I think it's best to revert the introduction of the
Slug
constraint:AsciiSlugger
is doing, but amore common approach is to only allow lowercase characters.Regex
constraint, especially when using it'sregex
option to customize the pattern for slugs.Considering this, I believe it is always better for applications to be clear on what they allow in a slug using the
Regex
constraint.