From 8840e69d37e92cdae68f6df2c64c706765117622 Mon Sep 17 00:00:00 2001 From: Jack Papel Date: Sun, 17 Dec 2023 23:35:18 -0500 Subject: [PATCH] Remove debug statements --- client/src/components/StyledText.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/client/src/components/StyledText.tsx b/client/src/components/StyledText.tsx index 6436b71a4..650358c7c 100644 --- a/client/src/components/StyledText.tsx +++ b/client/src/components/StyledText.tsx @@ -136,15 +136,6 @@ function styleKeywords(tokens: Token[]): Token[] { const token = tokens[index]; if (token.type !== "raw") continue; - // Remove the keyword and split so we can insert the styled text in its place - if (keyword === '1-Jack\'' && token.string.includes('Jack')) { - console.log("Keyword: " + keyword); - console.log("Token: " + token.string); - console.log("Regex: " + find(keyword)); - console.log("Regex src: " + find(keyword).source); - console.log("Final regex: " + RegExp('('+find(keyword).source+')', 'gi')); - console.log("Split: " + token.string.split(RegExp('('+find(keyword).source+')', 'gi'))); - } const stringSplit = token.string.split(RegExp('('+find(keyword).source+')', 'gi')); if (stringSplit.length === 1) continue;