(fullText)
| 615 | return currentResult(); |
| 616 | }, |
| 617 | set(fullText) { |
| 618 | if (fullText.length < buf.length || !fullText.startsWith(buf)) { |
| 619 | reset(); |
| 620 | } |
| 621 | const delta = fullText.slice(buf.length); |
| 622 | if (delta) buf += delta; |
| 623 | return currentResult(); |
| 624 | }, |
| 625 | getResult: currentResult, |
| 626 | }; |
| 627 | } |
no test coverage detected