(text: string | undefined, separator: string = ' ')
| 354 | } |
| 355 | |
| 356 | private static _splitSafe(text: string | undefined, separator: string = ' '): string[] { |
| 357 | if (!text) { |
| 358 | return []; |
| 359 | } |
| 360 | |
| 361 | return text |
| 362 | .split(separator) |
| 363 | .map(t => t.trim()) |
| 364 | .filter(t => t.length > 0); |
| 365 | } |
| 366 | |
| 367 | // |
| 368 | // <BackingTrack>...</BackingTrack> |
no test coverage detected