esLint
This commit is contained in:
@@ -32,7 +32,7 @@ export default async function handler(
|
||||
}
|
||||
|
||||
const arrayRaw = match[0].match(/\[(.*)\]/s)?.[1] || "";
|
||||
let values = arrayRaw
|
||||
const values = arrayRaw
|
||||
.split(",")
|
||||
.map((v) => v.trim())
|
||||
.map((v) => (v === "" ? "0" : v))
|
||||
@@ -45,10 +45,7 @@ export default async function handler(
|
||||
}
|
||||
|
||||
// Bereinige kaputte Endzeilen wie ")"
|
||||
fileContent = fileContent.replace(
|
||||
/^\s*[\)\(a-zA-Z0-9\/\:\. ]{2,40}\s*$/gm,
|
||||
""
|
||||
);
|
||||
fileContent = fileContent.replace(/^\s*[)(a-zA-Z0-9/:. ]{2,40}\s*$/gm, "");
|
||||
|
||||
await fs.writeFile(filePath, fileContent, "utf-8");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user