Skip to content

Commit 6bd27a9

Browse files
Copilotkkartunov
andcommitted
Fix ESLint semicolon errors in metadataMatching.ts
Co-authored-by: kkartunov <5585002+kkartunov@users.noreply.github.com>
1 parent 020c230 commit 6bd27a9

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)