Skip to content

Commit c08535c

Browse files
committed
Fix regex for searching for constant lists
0242577 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.
1 parent de0415e commit c08535c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/gen_stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5326,7 +5326,7 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar
53265326

53275327
foreach ($it as $file) {
53285328
$pathName = $file->getPathName();
5329-
if (!preg_match('/(?:[\w\.]*constants[\w\.]*|tokens).xml$/i', basename($pathName))) {
5329+
if (!preg_match('/(?:[\w\.]*constants[\w\._]*|tokens).xml$/i', basename($pathName))) {
53305330
continue;
53315331
}
53325332

0 commit comments

Comments
 (0)