Update getbib

This commit is contained in:
Emre AKYÜZ 2023-05-01 11:24:00 +03:00 committed by GitHub
parent 62e2856882
commit 8b4e8f59bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ function process_doi {
bibtex_entry=$(curl -s "https://api.crossref.org/works/$doi/transform/application/x-bibtex" -w "\\n" | sed '/^@[a-z]\+{[^[:space:]]\+[0-9]\{4\},/{
s/\([A-Z]\)/\L\1/g
s/_//g
s/\([0-9]\{2\}\)[0-9]*/\1/g
s/[0-9]*\([0-9]\{2\}\)/\1/g
}')
red_color='\033[0;31m'
reset_color='\033[0m'