fix: add 's' unit to sleep-polling-loop regex so 'sleep 30s' is detected#588
fix: add 's' unit to sleep-polling-loop regex so 'sleep 30s' is detected#588Abhi-DevHub wants to merge 1 commit into
Conversation
The regex alternation (m|h|d)? omitted s, so the trailing \b word boundary failed between
|
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 (2)
📝 WalkthroughWalkthroughThe ChangesSleep polling detection
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. 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 |
|
Your PR is awaiting review by a reviewer. Till then you can join the Discord for conversation: https://discord.befailproof.ai |
Closes #522
Problem
/\bsleep\s+(\d+(?:\.\d+)?)(m|h|d)?\b/\ silently drops \sleep 30s\ because the unit alternation lacks \s. The trailing \\b\ fails between \
Summary by CodeRabbit
Bug Fixes
sleep 30sare now correctly recognized and flagged when they exceed the configured threshold.Tests