From f165e540d0d74946eed2b8e5c857e7ee56227f8a Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sun, 4 Feb 2024 15:52:43 +0100 Subject: remove newlines from version.titanfall() --- src/modules/version.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/version.js b/src/modules/version.js index e337fc4..303fd42 100644 --- a/src/modules/version.js +++ b/src/modules/version.js @@ -87,7 +87,7 @@ version.northstar = () => { version.titanfall = () => { var versionFilePath = path.join(settings().gamepath, "gameversion.txt"); if (fs.existsSync(versionFilePath)) { - return fs.readFileSync(versionFilePath, "utf8"); + return fs.readFileSync(versionFilePath, "utf8").trim(); } else { return "unknown"; } -- cgit v1.2.3