(charType)
| 1026 | return this.trimStart(charType).trimEnd(charType); |
| 1027 | } |
| 1028 | trimStart(charType) { |
| 1029 | const rx = new RegExp('^' + (charType || '\\s') + '+'); |
| 1030 | this.intro = this.intro.replace(rx, ''); |
| 1031 | if (!this.intro) { |
| 1032 | let source; |
| 1033 | let i = 0; |
| 1034 | do { |
| 1035 | source = this.sources[i++]; |
| 1036 | if (!source) { |
| 1037 | break; |
| 1038 | } |
| 1039 | } while (!source.content.trimStartAborted(charType)); |
| 1040 | } |
| 1041 | return this; |
| 1042 | } |
| 1043 | trimEnd(charType) { |
| 1044 | const rx = new RegExp((charType || '\\s') + '+$'); |
| 1045 | let source; |
no test coverage detected