()
| 276 | |
| 277 | // Test helper: forces immediate finalization without waiting for timers |
| 278 | flushPendingInput(): void { |
| 279 | if (this._rapidInputTimer) { |
| 280 | clearTimeout(this._rapidInputTimer); |
| 281 | this._rapidInputTimer = null; |
| 282 | this.finalizeRapidInput(); |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | private escapeRegex(str: string): string { |
| 287 | return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); |
no test coverage detected