enhance(pdf): make the weblink pdf filename to be human-readable for the annotations page

This commit is contained in:
charlie
2023-01-06 12:28:18 +08:00
committed by Andelf
parent 418502deed
commit e70d76589b
3 changed files with 16 additions and 15 deletions

View File

@@ -183,6 +183,7 @@
(-> filename
(subs 0 (if local-asset? (- len 15) len))
(string/replace #"^hls__" "")
(string/replace #"__[-\d]+$" "")
(string/replace "_" " ")
(string/trimr))
filename))))