migration: ignore les backups .back.md des textes source
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user