Skip to content

Commit

Permalink
Remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Papel committed Dec 18, 2023
1 parent 466814c commit 8840e69
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions client/src/components/StyledText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 8840e69

@vercel
Copy link

@vercel vercel bot commented on 8840e69 Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mafia-game – ./

mafia-game-itssammym.vercel.app
mafia-game.vercel.app
mafia-game-git-00x-main-itssammym.vercel.app

Please sign in to comment.