Skip to content

Commit 546463c

Browse files
committed
optimize command fetch-starred
1 parent bc2235c commit 546463c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inoreader/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,10 @@ def fetch_starred(folder, tags, outfile, outdir, limit, save_image, out_format):
532532
continue
533533

534534
filename = re.sub(r'\s+', '_', title)
535-
filename = re.sub(r'[\[\]\(\)()]', '_', filename)
535+
filename = re.sub(r'[\[\]\(\)()::,,/|]', '_', filename)
536536
filename = re.sub(r'[“”\'"]', '', filename)
537+
filename = re.sub(r'-+', '-', filename)
538+
filename = filename[:50]
537539
if out_format == 'json':
538540
filename += '.json'
539541
elif out_format == 'markdown':

0 commit comments

Comments
 (0)