From 02688a976d643beeb04dffb5271a618354234386 Mon Sep 17 00:00:00 2001
From: Eric Oulashin <eric.oulashin@gmail.com>
Date: Tue, 5 Jul 2022 13:42:51 -0700
Subject: [PATCH] DDMsgReader: Strict mode fixes

---
 xtrn/DDMsgReader/DDMsgReader.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xtrn/DDMsgReader/DDMsgReader.js b/xtrn/DDMsgReader/DDMsgReader.js
index a38507db02..c7852b019e 100644
--- a/xtrn/DDMsgReader/DDMsgReader.js
+++ b/xtrn/DDMsgReader/DDMsgReader.js
@@ -7587,7 +7587,7 @@ function DigDistMsgReader_SetEnhancedReaderHelpLine()
 		{
 			// TODO: We don't really need to include the ) on the ones with the ).  That is
 			// just to ensure we find the right ones.
-			for (strI = 0; strI < toSearch[i].length; ++strI)
+			for (var strI = 0; strI < toSearch[i].length; ++strI)
 			{
 				var clickInfoObj = { x: helpLineIdx+strI+1,
 				                     y: console.screen_rows,
@@ -17744,7 +17744,7 @@ function removeInitialColorFromMsgBody(pMsgBody)
 
 	var msgBody = pMsgBody;
 
-	msgBodyLines = pMsgBody.split("\r\n", 3);
+	var msgBodyLines = pMsgBody.split("\r\n", 3);
 	if (msgBodyLines.length == 3)
 	{
 		var onlySyncAttrsRegexWholeWord = new RegExp("^(\x01[krgybmcw01234567hinpq,;\.dtl<>\[\]asz])+$", 'i');
-- 
GitLab