(cue)
| 16479 | // Note: Splits using a positive lookahead |
| 16480 | // this.split("foo").join("\n") === this.toString() |
| 16481 | split(cue) { |
| 16482 | // todo: cleanup |
| 16483 | const constructor = this._modifiedConstructor || this.constructor |
| 16484 | const ParticleBreakSymbol = this.particleBreakSymbol |
| 16485 | const AtomBreakSymbol = this.atomBreakSymbol |
| 16486 | // todo: cleanup. the escaping is wierd. |
| 16487 | return this.toString() |
| 16488 | .split(new RegExp(`\\${ParticleBreakSymbol}(?=${cue}(?:${AtomBreakSymbol}|\\${ParticleBreakSymbol}))`, "g")) |
| 16489 | .map(str => new constructor(str)) |
| 16490 | } |
| 16491 | get asMarkdownTable() { |
| 16492 | return this.toMarkdownTableAdvanced(this._getUnionNames(), val => val) |
| 16493 | } |
no test coverage detected