Conversation
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe pull request extends hex colour input support to accept 3-character shorthand formats (e.g., Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 |
Summary
This PR adds support for 3-character shorthand hex colors in
colored_text.hex_to_rgbnow accepts both the existing 6-digit forms and shorthand#rgb/rgb, expanding shorthand to the equivalent 6-digit color before parsing. Invalid lengths and malformed input continue to fall back to plain text.The PR also updates crate docs, README examples, and
examples/basic.rsto show equivalent hex forms, and removes the completed shorthand-hex item fromTODO.md.Summary by CodeRabbit
Release Notes
New Features
#f80) in addition to 6-digit formats.#prefix.Documentation