We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bda3b5b + 36c07fd commit a8de3f0Copy full SHA for a8de3f0
tests/bootstrap.php
@@ -43,7 +43,7 @@ function wpcli_tests_include_config( array $config_filenames = [] ) {
43
if ( $config_filename ) {
44
$config = file_get_contents( $config_filename );
45
$matches = null;
46
- $pattern = '/bootstrap="(?P<bootstrap>.*)"/';
+ $pattern = '/bootstrap="(?P<bootstrap>[^"]*)"/';
47
$result = preg_match( $pattern, $config, $matches );
48
if ( isset( $matches['bootstrap'] ) && file_exists( $matches['bootstrap'] ) ) {
49
include_once PACKAGE_ROOT . '/' . $matches['bootstrap'];
0 commit comments