From 1666b6208cac20df6206851c199c55df224c1e81 Mon Sep 17 00:00:00 2001 From: Charlie Fish Date: Sat, 12 Jun 2021 14:51:30 -0600 Subject: [PATCH] Fixing code comment --- 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 8ecbec9..f5ecf5a 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 (dnsmasq)"); // Add (NL) to end of title + .replace(/^# Title: (.*?)$/gmu, "# Title: $1 (dnsmasq)"); // Add (dnsmasq) 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.2