From 7a7dc93e4e4450e19cdd3369ee6964aa801c610d Mon Sep 17 00:00:00 2001
From: SileNce5k <ozzynexus@gmail.com>
Date: Thu, 18 Aug 2022 23:15:51 +0200
Subject: [PATCH] Add missing semicolons

---
 cleanuptxtfile.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/cleanuptxtfile.js b/cleanuptxtfile.js
index 6fc4eaa..ab39195 100644
--- a/cleanuptxtfile.js
+++ b/cleanuptxtfile.js
@@ -27,19 +27,19 @@ function printHelp(){
 }
 
 function fileNotFound(pathToTextFile) {
-	console.log(`FILE NOT FOUND: ${pathToTextFile}\n`)
-	process.exit(404)
+	console.log(`FILE NOT FOUND: ${pathToTextFile}\n`);
+	process.exit(404);
 }
 
 function cleanFile(pathToTextFile) {
 	let file = fs.readFileSync(pathToTextFile).toString();
-	const regex = /(\[)(.*)(\])/gm
+	const regex = /(\[)(.*)(\])/gm;
 	file = file.replace(regex, "");
-	let newPath = `CLEANED_${path.basename(pathToTextFile)}`
+	let newPath = `CLEANED_${path.basename(pathToTextFile)}`;
 	fs.writeFileSync(newPath, file);
-	console.log(`\nWrote new file to ${newPath}`)
+	console.log(`\nWrote new file to ${newPath}`);
 }
 
 let pathToTextFile = argHandler(process.argv);
 
-fs.existsSync(pathToTextFile) ? cleanFile(pathToTextFile) : fileNotFound(pathToTextFile)
\ No newline at end of file
+fs.existsSync(pathToTextFile) ? cleanFile(pathToTextFile) : fileNotFound(pathToTextFile);
\ No newline at end of file