Strip red-letter tags from devotionals#40
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthrough
ChangesRed-letter tag stripping
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
Motivation
<JESUS>/</JESUS>red-letter markers (which are intended for verse rendering) and these tags appeared in devotionals, notifications, and saved snippets.Description
cleanedForDisplaycomputed copy onDailyDevotionalthat returns a copy with the message sanitized for prose display.String.removingRedLetterTags()which strips<JESUS>/</JESUS>(case/whitespace tolerant) via a regex while preserving the quoted words.ios/swiftbibleTests/DailyDevotionalTests.swiftto cover normal tags, whitespace/case variants, and thatcleanedForDisplaypreserves non-message fields.Testing
DailyDevotionalTeststo the test target but tests were not executed here becausexcodebuildis not available in this environment.make test-iosin this environment and it failed due to the Make target usingset -o pipefailunder/bin/sh(unsupported here).swiftlintcheck but it could not run becauseswiftlintis not installed in this environment.Codex Task
Summary by CodeRabbit
Release Notes
New Features
Tests