From cc2a68e5882e96bdc545588a75c56748860ce808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Tue, 12 Sep 2023 18:52:38 +0200 Subject: [PATCH] Fix predefined constant page synchonization --- build/gen_stub.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 14fd822b3e5..84d7944a786 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -4527,7 +4527,7 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar foreach ($it as $file) { $pathName = $file->getPathName(); - if (!preg_match('/(?:[\w\.]*constants[\w\.]*|tokens|filters).xml$/i', basename($pathName))) { + if (!preg_match('/(?:[\w\.]*constants[\w\.]*|tokens).xml$/i', basename($pathName))) { continue; } @@ -4586,6 +4586,7 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar } $manualTermElement->parentNode->replaceChild($newTermElement, $manualTermElement); + $updated = true; } } @@ -4637,11 +4638,19 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar "/REPLACED-ENTITY-([A-Za-z0-9._{}%-]+?;)/", '//i', '//i', + '//i', + '//i', + '//i', + '//i', ], [ "&$1", "", "", + "", + "", + "", + "", ], $replacedXml );