524
allowNonContiguousMatches && !query.expectContiguousMatch);
525
if (labelDescriptionScore) {
526
>
const labelDescriptionMatches = createMatches(labelDescriptionPositions);
fuzzyScorer.ts
527
>
const labelMatch: IMatch[] = [];
528
>
const descriptionMatch: IMatch[] = [];
529
>
530
>
// We have to split the matches back onto the label and description portions
531
>
labelDescriptionMatches.forEach(h => {
532
>
533
>
// Match overlaps label and description part, we need to split it up
534
>
if (h.start < descriptionPrefixLength && h.end > descriptionPrefixLength) {
535
labelMatch.push({ start: 0, end: h.end - descriptionPrefixLength });
536
descriptionMatch.push({ start: h.start, end: descriptionPrefixLength });