* Returns true if the two lines are either exactly equal or equal after trimming whitespace and tabs.
(a: string, b: string)
| 163 | * Returns true if the two lines are either exactly equal or equal after trimming whitespace and tabs. |
| 164 | */ |
| 165 | function linesMatch(a: string, b: string): boolean { |
| 166 | const trimmedA = a.replace(/^\s+/, ""); |
| 167 | const trimmedB = b.replace(/^\s+/, ""); |
| 168 | return trimmedA === trimmedB; |
| 169 | } |
no test coverage detected