Tightened validation for colors in email renderer#26956
Conversation
no ref Before this change, `foo #ff9900` was considered a valid hex color. After this change, it is not. I believe it's difficult to have bad data in the database, but if that happens, we want to check it properly.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughA regex pattern for validating hex-based color settings in the email renderer was modified to include string anchors. The pattern was updated to match the entire input string using 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
no ref
Before this change,
foo #ff9900was considered a valid hex color. After this change, it is not.I believe it's difficult to have bad data in the database, but if that happens, we want to check it properly.