Closed elmeister closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bg-frontend | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 6, 2023 11:31am |
bhagavad-gita | ✅ Ready (Inspect) | Visit Preview | Sep 6, 2023 11:31am |
CodeRabbit
The change is focused on the splitIntoParagraphs
function in the src/utils/splitIntoParagraphs.ts
file. The regular expression used for splitting paragraphs has been simplified, removing the grouping and lookbehind feature, and now uses a simple space character instead.
File | Summary |
---|---|
src/utils/splitIntoParagraphs.ts |
The regular expression used in the splitIntoParagraphs function has been replaced with a simple space character, removing the grouping and lookbehind feature from the regex. |
🐰 "In the land of code, where logic intertwines, A rabbit hopped and tweaked some lines. No more complex regex to parse, Just a space, oh how sparse! Celebrate this change, as simplicity shines! 🎉"
Safari doesn't support lookbehind
Summary by CodeRabbit
splitIntoParagraphs
utility function insrc/utils/splitIntoParagraphs.ts
. The regular expression used for splitting text into paragraphs has been simplified, which may improve performance and readability. This change should not affect the functionality from a user's perspective.