From be72bac936515007b4fd9a30632f62ee19839bf8 Mon Sep 17 00:00:00 2001 From: Trim Bresilla Date: Wed, 4 Dec 2024 13:01:10 +0100 Subject: feat: handle better arXiv's "citation key" imported from DOI - Add a new dependency `rand` version `0.8` to the project - Modify the `format_bibtex_entry` function for better readability and citation key cleaning - Introduce logic to clean the citation key by retaining only alphanumerical characters and underscores - Limit the citation key to the last 14 characters if it exceeds that length - Add a new `file` field to the BibTeX entry using the provided file path --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index ffd4cca..9d6dba3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ doi2bib = "0.2.0" # doi = "0.3.0" editor-command = "0.1.1" futures = "0.3.30" +rand = "0.8" itertools = "0.13.0" lexopt = "0.3.0" nucleo-matcher = "0.3.1" -- cgit v1.2.3