-
-
Notifications
You must be signed in to change notification settings - Fork 392
Refactor regex to use concise wildcard #3026
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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