Also ignore nodelist lines that are blank

This commit is contained in:
Deon George 2021-09-11 19:26:11 +10:00
parent ff2b246d31
commit 04e8a899d4

View File

@ -103,7 +103,7 @@ class NodelistImport implements ShouldQueue
$tocrc .= $line."\r\n"; $tocrc .= $line."\r\n";
// Lines beginning with a semicolon(;) are comments // Lines beginning with a semicolon(;) are comments
if (preg_match('/^;/',$line) OR ($line == chr(0x1a))) if ((! $line) OR preg_match('/^;/',$line) OR ($line == chr(0x1a)))
continue; continue;
// Remove any embedded CR and BOM // Remove any embedded CR and BOM