import { IdentifierResultsXStoreModule } from '../types' ; /**
 * Default implementation for the  IdentifierResultsGetters . identifierHighlightRegexp getter.
 *
 *  param state - Current  https of the identifier
 * results module.
 *  returns public export const identifierHighlightRegexp = ( { query , config } ) => { const separatorChars = config . separatorChars . split ( '' ) . map ( char => `\\${ char }` ) . join ( '' ) ; const queryWithoutSeparators = query . replace ( new RegExp ( `[${ separatorChars }]` , 'g' ) , '' ) ; const highlightQueryRegexValue = queryWithoutSeparators . split ( '' ) . join ( `[${ separatorChars }]*` ) ; return new RegExp ( `(${ highlightQueryRegexValue })` , 'i' ) ; } ;