From 51b6c35d13b6765a1e6607c04461c604cf5f01c2 Mon Sep 17 00:00:00 2001 From: Charlie Fish Date: Fri, 11 Jun 2021 17:55:16 -0600 Subject: [PATCH] Updating header for dnsmasq files --- scripts/generate-dnsmasq.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-dnsmasq.js b/scripts/generate-dnsmasq.js index 2c08431..8ecbec9 100644 --- a/scripts/generate-dnsmasq.js +++ b/scripts/generate-dnsmasq.js @@ -9,7 +9,7 @@ const path = require("path"); .replaceAll(/0\.0\.0\.0 (.*?)( .*)?$/gmu, "0.0.0.0 $1/$2") // I need this line to add "/" at the end of each URL .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=/") // Replace all occurances of "# 0.0.0.0 " at the beginning of the line with "# server=/" - .replace(/^# Title: (.*?)$/gmu, "# Title: $1 (NL)"); // Add (NL) to end of title + .replace(/^# Title: (.*?)$/gmu, "# Title: $1 (dnsmasq)"); // Add (NL) to end of title await fs.writeFile(path.join(__dirname, "..", "dnsmasq-version", file.replace(".txt", "-dnsmasq.txt")), noIPFileContents, "utf8"); // Write new file to `alt-version` directory })); })(); -- 2.47.3