1
0

outputTest.js 342 B

12345678910111213141516171819
  1. import { Output } from './../io/output';
  2. export class OutputTest extends Output {
  3. constructor () {
  4. super();
  5. this.list = [];
  6. }
  7. sendOutput (text) {
  8. const output = ''+text;
  9. output.split("\n").forEach(t => {
  10. t = t.replace(/\t/g,' ');
  11. t = t.replace(/\s/g," ");
  12. this.list.push(t);
  13. },this);
  14. }
  15. }