File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/apps/review/src/lib/utils Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments