109
// We don't need to check if it's contiguous if we allow non-contiguous matches
110
allowNonContiguousMatches ||
112
>
// Looking at an index higher than 0 in the query means we must have already
113
>
// found out this is contiguous otherwise there wouldn't have been a score
114
>
queryIndexGtNull ||
115
>
// lastly check if the query is completely contiguous at this index in the target
116
>
targetLower.startsWith(queryLower, targetIndex)
117
)) {
118
matches[currentIndex] = matchesSequenceLength + 1;