新增账号,超管体系
This commit is contained in:
@@ -42,8 +42,8 @@ function convertTxtToCsv(buffer) {
|
||||
for (const line of dataLines) {
|
||||
const trimmed = line.trim();
|
||||
if (!trimmed || trimmed.startsWith('*')) continue;
|
||||
const parts = trimmed.split(/\s+/);
|
||||
if (parts.length >= 2) {
|
||||
const parts = trimmed.split(/[;\s]+/);
|
||||
if (parts.length >= 2 && /^[-+]?\d/.test(parts[0])) {
|
||||
csvRows.push(`${parts[0]},${parts[1]}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user