* Check if two arrays of lines match after Unicode normalization.
(lines: string[], pattern: string[], startIndex: number)
| 75 | * Check if two arrays of lines match after Unicode normalization. |
| 76 | */ |
| 77 | function normalizedMatch(lines: string[], pattern: string[], startIndex: number): boolean { |
| 78 | for (let i = 0; i < pattern.length; i++) { |
| 79 | if (normalizeUnicode(lines[startIndex + i] ?? "") !== normalizeUnicode(pattern[i] ?? "")) { |
| 80 | return false |
| 81 | } |
| 82 | } |
| 83 | return true |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Attempt to find the sequence of pattern lines within lines beginning at or after start. |
no test coverage detected