Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default and constraint to CensorRule#regexp #8160

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

garethrees
Copy link
Member

Add default value and not null constraint to CensorRule#regexp. While effectively the same behaviour, this makes the intent explicit and prevents empty values appearing in admin tables where we render censor rules.

BEFORE

Screenshot 2024-03-13 at 09 59 23

AFTER

Screenshot 2024-03-13 at 09 59 32

Add default value and not null constraint to `CensorRule#regexp`. While
effectively the same behaviour, this makes the intent explicit and
prevents empty values appearing in admin tables where we render censor
rules.
@garethrees garethrees marked this pull request as ready for review April 16, 2024 08:26
@gbp gbp merged commit f1a9143 into develop Apr 22, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants