Refactor regex to use concise wildcard#3026
Conversation
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughA regex pattern in the metadata extraction function was simplified by replacing Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
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 |
|



Proposed change
Resolves #3013
This PR updates a regular expression in
backend/apps/owasp/models/common.pyto make it easier to read and maintain.The existing pattern used
[\s\S]to match any character. This has been replaced with the equivalent wildcard., which is clearer and follows common regex best practices.Why this change?
Checklist
make check-testlocally and all tests passed