(word, stringToWordSpans)
| 142446 | return bestMatch; |
| 142447 | } |
| 142448 | function getWordSpans(word, stringToWordSpans) { |
| 142449 | var spans = stringToWordSpans.get(word); |
| 142450 | if (!spans) { |
| 142451 | stringToWordSpans.set(word, spans = breakIntoWordSpans(word)); |
| 142452 | } |
| 142453 | return spans; |
| 142454 | } |
| 142455 | function matchTextChunk(candidate, chunk, stringToWordSpans) { |
| 142456 | var index = indexOfIgnoringCase(candidate, chunk.textLowerCase); |
| 142457 | if (index === 0) { |
no test coverage detected