migration: ignore les backups .back.md des textes source

This commit is contained in:
2026-07-26 16:42:56 +02:00
parent a2cb5f9dcf
commit 6a190effab
@@ -188,7 +188,8 @@ final class ProjetNode extends Url {
sort($entries, SORT_NATURAL | SORT_FLAG_CASE); sort($entries, SORT_NATURAL | SORT_FLAG_CASE);
$markdown = NULL; $markdown = NULL;
foreach ($entries as $entry) { foreach ($entries as $entry) {
if (!is_file($dir . '/' . $entry) || !preg_match('/\.md$/i', $entry)) { // Ignore ".back.md" backups of the pre-clean source text.
if (!is_file($dir . '/' . $entry) || !preg_match('/\.md$/i', $entry) || preg_match('/\.back\.md$/i', $entry)) {
continue; continue;
} }
if (preg_match($preferred, $entry)) { if (preg_match($preferred, $entry)) {