Skip to content

Commit 01a64b8

Browse files
authored
Merge pull request #1378 from topcoder-platform/copilot/sub-pr-1376
Fix ESLint semicolon violations in metadataMatching.ts
2 parents 3f4c928 + 6bd27a9 commit 01a64b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/apps/review/src/lib/utils/metadataMatching.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ export function findMetadataPhaseMatch(
113113
}
114114

115115
// Replace all sequences of space, underscore, or hyphen in the target with a placeholder
116-
const WORDSEP_PLACEHOLDER = '__WORDSEP__';
117-
const sepPattern = /[ \-_]+/g;
118-
const targetWithPlaceholder = target.replace(sepPattern, WORDSEP_PLACEHOLDER);
116+
const WORDSEP_PLACEHOLDER = '__WORDSEP__'
117+
const sepPattern = /[ \-_]+/g
118+
const targetWithPlaceholder = target.replace(sepPattern, WORDSEP_PLACEHOLDER)
119119
// Properly escape ALL regex metacharacters (including backslash), leaving the placeholder intact
120120
const escapedTarget = escapeRegexLiteral(targetWithPlaceholder)
121-
.replace(new RegExp(escapeRegexLiteral(WORDSEP_PLACEHOLDER), 'g'), '[-_\\s]+');
122-
const sepInsensitive = new RegExp(`\\b${escapedTarget}\\b`);
121+
.replace(new RegExp(escapeRegexLiteral(WORDSEP_PLACEHOLDER), 'g'), '[-_\\s]+')
122+
const sepInsensitive = new RegExp(`\\b${escapedTarget}\\b`)
123123
if (sepInsensitive.test(normalizedMetadata)) {
124124
return { source: 'stringBoundary' }
125125
}

0 commit comments

Comments
 (0)