(charType?: string)
| 322 | } |
| 323 | |
| 324 | trimStart(charType?: string): this { |
| 325 | const rx = new RegExp(`^${charType || '\\s'}+`) |
| 326 | this.intro = this.intro.replace(rx, '') |
| 327 | |
| 328 | if (!this.intro) { |
| 329 | let source |
| 330 | let i = 0 |
| 331 | |
| 332 | do { |
| 333 | source = this.sources[i++] |
| 334 | if (!source) { |
| 335 | break |
| 336 | } |
| 337 | } while (!source.content.trimStartAborted(charType)) |
| 338 | } |
| 339 | |
| 340 | return this |
| 341 | } |
| 342 | |
| 343 | trimEnd(charType?: string): this { |
| 344 | const rx = new RegExp(`${charType || '\\s'}+$`) |
no test coverage detected