diff --git a/tests/generate-pdo.php b/tests/generate-pdo.php index 99c3d8e2..40741142 100755 --- a/tests/generate-pdo.php +++ b/tests/generate-pdo.php @@ -7,8 +7,8 @@ chdir(__DIR__); foreach (glob("*.html") as $filename) { if (!preg_match('~^pdo-|elastic|screenshots~', $filename)) { $file = file_get_contents($filename); - $file = preg_replace_callback('~/(adminer(/sqlite)?|editor/example)\.php(\??)~', function ($match) { - return "/$match[1].php?ext=pdo" . ($match[3] ? "&" : ""); + $file = preg_replace_callback('~/((adminer|editor)/[^?<]*)(\??)~', function ($match) { + return "/$match[1]?ext=pdo" . ($match[3] ? "&" : ""); }, $file); $file = str_replace("