From: gap579137 Date: Fri, 11 Jun 2021 13:05:07 +0000 (-0500) Subject: Update generate-dnsmasq.js X-Git-Tag: aggregated-20250518~576 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09713c6ecb945ae468b1319b0aeb576a9e1e445a;p=thirdparty%2Fblocklistproject%2Flists.git Update generate-dnsmasq.js --- diff --git a/scripts/generate-dnsmasq.js b/scripts/generate-dnsmasq.js index 6ac3fbe..e5ea876 100644 --- a/scripts/generate-dnsmasq.js +++ b/scripts/generate-dnsmasq.js @@ -10,6 +10,6 @@ const path = require("path"); .replaceAll(/^# 0\.0\.0\.0 /gmu, "# server=/") // Replace all occurances of "# 0.0.0.0 " at the beginning of the line with "# server=/" // .replaceAll(/^# 0\.0\.0\.0 /gmu, "# server=/") // I need this line to add "/" at the end of each URL .replace(/^# Title: (.*?)$/gmu, "# Title: $1 (NL)"); // Add (NL) to end of title - await fs.writeFile(path.join(__dirname, "..", "alt-version", file.replace(".txt", "-nl.txt")), noIPFileContents, "utf8"); // Write new file to `alt-version` directory + await fs.writeFile(path.join(__dirname, "..", "dnsmasq-version", file.replace(".txt", "-dnsmasq.txt")), noIPFileContents, "utf8"); // Write new file to `alt-version` directory })); })();