This commit is contained in:
dakkar 2024-02-03 12:55:46 +00:00
parent 1bb5021c54
commit bb3694bfed

View file

@ -131,7 +131,7 @@ export class ImportNotesProcessorService {
} }
@bindThis @bindThis
private parseTwitterFile(str : string) : null | { tweet: object }[] { private parseTwitterFile(str : string) : { tweet: object }[] {
const jsonStr = str.replace(/^\s*window\.YTD\.tweets\.part0\s*=\s*/, ''); const jsonStr = str.replace(/^\s*window\.YTD\.tweets\.part0\s*=\s*/, '');
try { try {