From d680c97bc688c02a0b451bcb252cd3424b7dca36 Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Wed, 23 Apr 2025 10:21:26 -0400 Subject: [PATCH] Removes console logs from title matching Cleans up the code by removing console log statements used for debugging during the title matching process. This improves code readability and avoids unnecessary logging in the production environment. --- src/libs/findBestMatchingTitle.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/libs/findBestMatchingTitle.ts b/src/libs/findBestMatchingTitle.ts index f9197e7..5714f3e 100644 --- a/src/libs/findBestMatchingTitle.ts +++ b/src/libs/findBestMatchingTitle.ts @@ -16,25 +16,12 @@ function findBestMatch(mainString: string, targets: string[]): string | null { break; } - console.log( - "searching best match", - `'${mainString}'`, - `'${targets[i]}'`, - currentScore, - highestScore, - ); if (currentScore > highestScore) { highestScore = currentScore; bestMatch = targets[i]; } } - console.log( - "findBestMatch", - `'${mainString}'`, - `'${bestMatch}'`, - highestScore, - ); return bestMatch; } @@ -55,7 +42,6 @@ export const findBestMatchingTitle = ( expectedSuffix = match[1]; } - console.log("searching best user preferred title", userPreferred); const userPreferredBestMatch = userPreferred ? findBestMatch( userPreferred, @@ -68,7 +54,6 @@ export const findBestMatchingTitle = ( ), ) : null; - console.log("searching best english title", english); const englishBestMatch = english ? findBestMatch( english,