(rx)
| 113 | } |
| 114 | } |
| 115 | trimStart(rx) { |
| 116 | this.intro = this.intro.replace(rx, ''); |
| 117 | if (this.intro.length) return true; |
| 118 | const trimmed = this.content.replace(rx, ''); |
| 119 | if (trimmed.length) { |
| 120 | if (trimmed !== this.content) { |
| 121 | this.split(this.end - trimmed.length); |
| 122 | this.edit('', void 0, true); |
| 123 | } |
| 124 | return true; |
| 125 | } else { |
| 126 | this.edit('', void 0, true); |
| 127 | this.outro = this.outro.replace(rx, ''); |
| 128 | if (this.outro.length) return true; |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | let _btoa = () => { |
| 133 | throw new Error('Unsupported environment: `btoa` or `Buffer` should be supported.'); |
no test coverage detected