From 020c2300b7303c6627503afe108d66bc53fc1dd9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Dec 2025 06:56:28 +0000 Subject: [PATCH 1/2] Initial plan From 6bd27a917976691037302ae3cab29d7f0e408564 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Dec 2025 07:02:31 +0000 Subject: [PATCH 2/2] Fix ESLint semicolon errors in metadataMatching.ts Co-authored-by: kkartunov <5585002+kkartunov@users.noreply.github.com> --- src/apps/review/src/lib/utils/metadataMatching.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/review/src/lib/utils/metadataMatching.ts b/src/apps/review/src/lib/utils/metadataMatching.ts index aa18006f1..2279bfe00 100644 --- a/src/apps/review/src/lib/utils/metadataMatching.ts +++ b/src/apps/review/src/lib/utils/metadataMatching.ts @@ -113,13 +113,13 @@ export function findMetadataPhaseMatch( } // Replace all sequences of space, underscore, or hyphen in the target with a placeholder - const WORDSEP_PLACEHOLDER = '__WORDSEP__'; - const sepPattern = /[ \-_]+/g; - const targetWithPlaceholder = target.replace(sepPattern, WORDSEP_PLACEHOLDER); + const WORDSEP_PLACEHOLDER = '__WORDSEP__' + const sepPattern = /[ \-_]+/g + const targetWithPlaceholder = target.replace(sepPattern, WORDSEP_PLACEHOLDER) // Properly escape ALL regex metacharacters (including backslash), leaving the placeholder intact const escapedTarget = escapeRegexLiteral(targetWithPlaceholder) - .replace(new RegExp(escapeRegexLiteral(WORDSEP_PLACEHOLDER), 'g'), '[-_\\s]+'); - const sepInsensitive = new RegExp(`\\b${escapedTarget}\\b`); + .replace(new RegExp(escapeRegexLiteral(WORDSEP_PLACEHOLDER), 'g'), '[-_\\s]+') + const sepInsensitive = new RegExp(`\\b${escapedTarget}\\b`) if (sepInsensitive.test(normalizedMetadata)) { return { source: 'stringBoundary' } }