* Checks if the a line is a match for the current expression. * * @param line the line to check * @returns
(line: string)
| 169 | * @returns |
| 170 | */ |
| 171 | private isMatch(line: string) { |
| 172 | return this.stopExpression && this.stopExpression instanceof RegExp |
| 173 | ? this.stopExpression.test(line) |
| 174 | : this.stopExpression === line; |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * Iterator next function. |