|
|
|
@ -96,8 +96,12 @@ export class QuotesComponent implements OnInit, AfterViewInit {
|
|
|
|
|
|
|
|
|
|
for (const quote of quotes) {
|
|
|
|
|
let date = new DatePipe('en-US-POSIX').transform(quote.date, 'dd/MM/yyyy');
|
|
|
|
|
if (quote.text.includes('"')) {
|
|
|
|
|
lines.push(quote.text + ' [' + quote.game + '] [' + date + ']\r\n');
|
|
|
|
|
} else {
|
|
|
|
|
lines.push('"' + quote.text + '" [' + quote.game + '] [' + date + ']\r\n');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let data = new Blob(lines, {
|
|
|
|
|
type: 'text/plain; charset=utf-8'
|
|
|
|
|