Skip to content

Commit a8de3f0

Browse files
authored
Merge pull request #224 from wp-cli/fix/bootstrap-regex
2 parents bda3b5b + 36c07fd commit a8de3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function wpcli_tests_include_config( array $config_filenames = [] ) {
4343
if ( $config_filename ) {
4444
$config = file_get_contents( $config_filename );
4545
$matches = null;
46-
$pattern = '/bootstrap="(?P<bootstrap>.*)"/';
46+
$pattern = '/bootstrap="(?P<bootstrap>[^"]*)"/';
4747
$result = preg_match( $pattern, $config, $matches );
4848
if ( isset( $matches['bootstrap'] ) && file_exists( $matches['bootstrap'] ) ) {
4949
include_once PACKAGE_ROOT . '/' . $matches['bootstrap'];

0 commit comments

Comments
 (0)