Skip to content

Conversation

@AlessandroMinoccheri
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Dec 18, 2022

Codecov Report

Merging #327 (4e352c6) into main (5acb686) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             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              
Impacted Files Coverage Δ
src/Analyzer/PatternString.php 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fain182 fain182 changed the title added test to verify issue 323 Avoid partial name matching Dec 19, 2022
@fain182 fain182 self-assigned this Dec 19, 2022
@fain182 fain182 added this to the v1 milestone Dec 19, 2022
@fain182
Copy link
Collaborator

fain182 commented Dec 19, 2022

@AlessandroMinoccheri can you review it? (github don't permits me to ask it to you, because you created this PR)

if (!$this->containsWildcard($pattern) && str_starts_with($this->value, $pattern)) {
return true;
if (!$this->containsWildcard($pattern)) {
$slashedTerminatedPattern = str_ends_with($pattern, '\\')? $pattern : $pattern.'\\';
Copy link
Member Author

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?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, much better @fain182

@fain182 fain182 merged commit 690c380 into main Dec 21, 2022
@micheleorselli micheleorselli deleted the issue-323 branch March 13, 2025 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants