Skip to content

Commit

Permalink
Merge pull request #224 from wp-cli/fix/bootstrap-regex
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Oct 1, 2024
2 parents bda3b5b + 36c07fd commit a8de3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function wpcli_tests_include_config( array $config_filenames = [] ) {
if ( $config_filename ) {
$config = file_get_contents( $config_filename );
$matches = null;
$pattern = '/bootstrap="(?P<bootstrap>.*)"/';
$pattern = '/bootstrap="(?P<bootstrap>[^"]*)"/';
$result = preg_match( $pattern, $config, $matches );
if ( isset( $matches['bootstrap'] ) && file_exists( $matches['bootstrap'] ) ) {
include_once PACKAGE_ROOT . '/' . $matches['bootstrap'];
Expand Down

0 comments on commit a8de3f0

Please sign in to comment.