Skip to content

Conversation

@swissspidy
Copy link
Member

The current regex doesn't work if all the attributes in the PHPUnit config file are on one line.

@swissspidy swissspidy added bug Something isn't working scope:testing labels Oct 1, 2024
@swissspidy swissspidy added this to the 4.3.4 milestone Oct 1, 2024
@swissspidy swissspidy requested a review from a team as a code owner October 1, 2024 13:42
@swissspidy swissspidy merged commit a8de3f0 into main Oct 1, 2024
@swissspidy swissspidy deleted the fix/bootstrap-regex branch October 1, 2024 15:44
$config = file_get_contents( $config_filename );
$matches = null;
$pattern = '/bootstrap="(?P<bootstrap>.*)"/';
$pattern = '/bootstrap="(?P<bootstrap>[^"]*)"/';
Copy link
Contributor

Choose a reason for hiding this comment

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

You may still want to replace the * with a + to not match bootstrap="" (which should be rare or non-existent, but saves having to check for it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working scope:testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants