(charType?: string)
| 341 | } |
| 342 | |
| 343 | trimEnd(charType?: string): this { |
| 344 | const rx = new RegExp(`${charType || '\\s'}+$`) |
| 345 | |
| 346 | let source |
| 347 | let i = this.sources.length - 1 |
| 348 | |
| 349 | do { |
| 350 | source = this.sources[i--] |
| 351 | if (!source) { |
| 352 | this.intro = this.intro.replace(rx, '') |
| 353 | break |
| 354 | } |
| 355 | } while (!source.content.trimEndAborted(charType)) |
| 356 | |
| 357 | return this |
| 358 | } |
| 359 | } |
no test coverage detected