1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix regex for searching for constant lists

0242577b33 partly fixed the detection of external constant lists referenced on Predefined Constants pages, but changing the file search regex is needed too in order to fully fix the underlying issue in case of cURL constants.
This commit is contained in:
Máté Kocsis
2024-05-30 09:46:24 +02:00
parent de0415e705
commit c08535c804

View File

@@ -5326,7 +5326,7 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar
foreach ($it as $file) {
$pathName = $file->getPathName();
if (!preg_match('/(?:[\w\.]*constants[\w\.]*|tokens).xml$/i', basename($pathName))) {
if (!preg_match('/(?:[\w\.]*constants[\w\._]*|tokens).xml$/i', basename($pathName))) {
continue;
}