diff --git a/web/modules/custom/migrate_leshed/src/Plugin/migrate/source/ProjetNode.php b/web/modules/custom/migrate_leshed/src/Plugin/migrate/source/ProjetNode.php index 8413161..6df6521 100644 --- a/web/modules/custom/migrate_leshed/src/Plugin/migrate/source/ProjetNode.php +++ b/web/modules/custom/migrate_leshed/src/Plugin/migrate/source/ProjetNode.php @@ -188,7 +188,8 @@ final class ProjetNode extends Url { sort($entries, SORT_NATURAL | SORT_FLAG_CASE); $markdown = NULL; 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; } if (preg_match($preferred, $entry)) {