index
:
pdf-urls
master
Extract all URLs from a PDF file.
about
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
src/lib.rs
2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c7f6e94..889a64c 100644
--- a/
src/lib.rs
+++ b/
src/lib.rs
@@ -44,6 +44,8 @@ pub fn get_urls_from_pdf<P: AsRef<Path>>(path: P) -> Result<Vec<String>> {
}
}
+ urls.dedup();
+
Ok(urls)
}