- Issue created by @dimitriskr
- Status changed to Needs review
over 1 year ago 1:51pm 14 January 2024 - πΊπΈUnited States smustgrave
Could you post the regex you used to find those?
- π¬π·Greece dimitriskr
It was a PHPStorm inspection that identified the changes and not manually, so I got no regex for you
- π¬π·Greece dimitriskr
Maybe something like this? Only for str_ends_with() replacements
https://regex101.com/r/cd29ZX/1 - Status changed to RTBC
about 1 year ago 8:41pm 25 January 2024 - πΊπΈUnited States smustgrave
Thanks used that with also phpstorm (preg_match\('\/.*) got several 100 matches but reviewed a few dozen and didn't find any additional ones that were being suggested to replace.
- π³πΏNew Zealand quietone
I'm triaging RTBC issues β . I read the IS, the comments and the MR. I didn't find any unanswered questions.
I ran the inspection in PHPStorm which reported 6 problems in 4 files. Those are fixed here. There are two more changes here, one for \Drupal\Tests\views\Functional\Plugin\PagerTest::testNoLimit and the other in \Drupal\Tests\ComposerIntegrationTest::testComposerLockHash. How were these last two discovered?
I used the grep string from #8 which reports 138 matches in core. There may be more that can be changed but that should not prevent this improvement. We can also do a 'round 2'.
Leaving at RTBC;
- π¬π·Greece dimitriskr
For ComposerIntegrationTest, I asked in Slack if the replacement was valid, got only one positive response so I committed it.
As for the PagerTest, it came from a related issue and specifically this commit which was reverted there and added here
- π¬π§United Kingdom alexpott πͺπΊπ
Committed and pushed 4d5abf7f08 to 11.x and cc7590905b to 10.3.x. Thanks!
-
alexpott β
committed cc759090 on 10.3.x
Issue #3414568 by dimitriskr, smustgrave, quietone: Replace preg_match...
-
alexpott β
committed cc759090 on 10.3.x
- Status changed to Fixed
about 1 year ago 12:02am 29 February 2024 -
alexpott β
committed 4d5abf7f on 11.x
Issue #3414568 by dimitriskr, smustgrave, quietone: Replace preg_match...
-
alexpott β
committed 4d5abf7f on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.