Join Url paths with forward slashes instead of OS#934
Join Url paths with forward slashes instead of OS#934chrisvire merged 3 commits intosillsdev:mainfrom
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughAdds an exported Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 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. 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 |
- On Windows, the contents images had back slashes in paths intended for web pages and messed up the path processing.
3931df8 to
815a611
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@convert/fileUtils.ts`:
- Around line 79-82: joinUrlPath currently calls posix.join(...parts) but does
not normalize Windows backslashes, so segments containing '\' will be preserved;
update joinUrlPath to first map over the incoming parts and replace all
backslashes with forward slashes (e.g., part.replace(/\\/g, '/')) before calling
posix.join, ensuring any trailing/leading backslashes are normalized to POSIX
separators and the returned path is always POSIX-style; keep the function name
joinUrlPath and the posix.join call but feed it the normalized segments.
7104db3 to
820c6ac
Compare
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.