-
-
Notifications
You must be signed in to change notification settings - Fork 48
Avoid partial name matching #327
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #327 +/- ##
============================================
+ Coverage 93.32% 93.33% +0.01%
- Complexity 492 493 +1
============================================
Files 60 60
Lines 1318 1321 +3
============================================
+ Hits 1230 1233 +3
Misses 88 88
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
@AlessandroMinoccheri can you review it? (github don't permits me to ask it to you, because you created this PR) |
src/Analyzer/PatternString.php
Outdated
| if (!$this->containsWildcard($pattern) && str_starts_with($this->value, $pattern)) { | ||
| return true; | ||
| if (!$this->containsWildcard($pattern)) { | ||
| $slashedTerminatedPattern = str_ends_with($pattern, '\\')? $pattern : $pattern.'\\'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we simplify these lines to explicit well the meaning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, much better @fain182
No description provided.